☰
Module buffer
Structs
?
Module
nanorand
::
buffer
source
·
[
−
]
Expand description
Provides a buffered wrapper for RNGs, preventing bits from being wasted.
Structs
BufferedRng
A buffered wrapper for any
Rng
implementation. It will keep unused bytes from the last call to
Rng::rand
, and use them for subsequent randomness if needed, rather than throwing them away.