vibe.d beta banner
get vibe.d
0.10.0

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.

Authors

Ilya Shipunov

Copyright

© 2013 RejectedSoftware e.K.

License

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