vibe.d beta banner
get vibe.d
0.10.0

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

Module vibe.crypto.cryptorand

Implements cryptographically secure random number generators.

Functions

NameDescription
secureRNG() Creates a cryptographically secure random number generator.

Interfaces

NameDescription
RandomNumberStream Base interface for all cryptographically secure RNGs.

Classes

NameDescription
CryptoException Thrown when an error occurs during random number generation.
HashMixerRNG Hash-based cryptographically secure random number mixer.
SystemRNG Operating system specific cryptography secure random number generator.

Manifest constants

NameTypeDescription
LinuxMaybeHasGetrandom

Aliases

NameTypeDescription
SHA1HashMixerRNG HashMixerRNG!(std.digest.sha.SHA!(512,160).SHA,5) A SHA-1 based mixing RNG. Alias for HashMixerRNG!(SHA1, 5).
Authors

Ilya Shipunov

Copyright

© 2013 Sönke Ludwig

License

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