nanorand
0.7.0
Module buffer
Structs
In crate nanorand
Module
nanorand
::
buffer
Copy item path
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.