6 Nov
2017
6 Nov
'17
6:05 p.m.
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.