Subject: Re: [boost] Boost.Uuid and header-only support
From: Peter Dimov (lists_at_[hidden])
Date: 2017-11-06 18:05:31
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk