Crate rng_buffer

source ·

Structs§

  • Wrapper around an array, that implements Default by copying the default element.
  • Wrapper around an RngCore that fills an 8*[N]-byte buffer at a time in order to make fewer system calls.
  • Wraps an RngBufferCore using a BlockRng64. Also wraps it in an Rc and RefCell so that the buffer will be shared with all clones of the instance in the same thread. (This buffer isn’t meant to be shared between threads, because benchmarks indicate that the overhead cost of communication between threads is usually larger than that of the system call that an OsRng makes.)
  • Wraps an RNG in an Rc and RefCell so that it can be shared (within the same thread) across structs that expect to own one.

Functions§

Type Aliases§