Crate rand_core

Source
Expand description

Random number generation traits

This crate is mainly of interest to crates publishing implementations of RngCore. Other users are encouraged to use the rand crate instead which re-exports the main traits and error types.

RngCore is the core trait implemented by algorithmic pseudo-random number generators and external random-number sources.

SeedableRng is an extension trait for construction from fixed seeds and other random number generators.

The impls and le sub-modules include a few small functions to assist implementation of RngCore.

Re-exports§

Modules§

  • The BlockRngCore trait and implementation helpers
  • Helper functions for implementing RngCore functions.
  • Little-Endian utilities

Structs§

Traits§

  • A marker trait used to indicate that an RngCore implementation is supposed to be cryptographically secure.
  • Implementation-level interface for RNGs
  • A random number generator that can be explicitly seeded.
  • A marker trait used to indicate that a TryRngCore implementation is supposed to be cryptographically secure.
  • A potentially fallible version of RngCore.