vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function secureRNG

Creates a cryptographically secure random number generator.

RandomNumberStream secureRNG() @safe;

Note that the returned RNG will operate in a non-blocking mode, which means that if no sufficient entropy has been generated, new random numbers will be generated from previous state.


Ilya Shipunov


© 2013 Sönke Ludwig


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.