randUuid

The default random UUID generator. You can set this if you need to generate UUIDs in another manner and already have code pointing to this module.

This uses a unique PRNG instance. If you want repeatable results, you should inject your own UUID generator and reseed it as necessary:

auto rand = getRand();
randUuid = new RandomGen!(typeof(rand))(rand);
doStuff();
rand.reseed();

The default PRNG is the Mersenne twister. If you need speed, KISS is about 30 times faster. I chose the Mersenne twister because it's reasonably fast (I can generate 150,000 per second on my machine) and has a long period. The KISS generator can produce 5 million per second on my machine.

UuidGen randUuid;

Meta