Subject: Re: [boost] Boost.Uuid and header-only support
From: James E. King, III (jking_at_[hidden])
Date: 2017-11-06 22:50:02
On Mon, Nov 6, 2017 at 1:05 PM, Peter Dimov via Boost <boost_at_[hidden]
> James E. King, III wrote:
> Filling a uuid with random does not require integers.
>> In this case as long as the UniformRandomNumberGenerator produces at
>> least one byte from operator() then it is sufficient to fill the contents
>> of a uuid randomly.
> If you just take the lowest 8 bits of the output, it will not be uniformly
> distributed unless min() == 0 and max() == 2^n-1.
I submitted a pull request so anyone who wants to can take a look.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk