6 Nov
2017
6 Nov
'17
10:50 p.m.
On Mon, Nov 6, 2017 at 1:05 PM, Peter Dimov via Boost wrote: 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.
https://github.com/boostorg/uuid/pull/52
- Jim