Skip to main content

Crate rand_sfc

Crate rand_sfc 

Source
Expand description

This crate implements the sfc (Small Fast Counting) family of pseudorandom number generators designed by Chris Doty-Humphrey, author of the PractRand pseudorandom number generator testing suite. The generators have a small state, good statistical quality, and high performance. Like most generators intended for non-cryptographic use, they can be predicted. They also have a variable period, but the counter present in the state provides a fixed lower bound and most states are on the longest cycle.

This crate provides:

  • Sfc64: 64 bit output, seed space 192 bits, worst-case period 2^64, and expected period ~2^255.
  • Sfc32: 32 bit output, seed space 96 bits, worst-case period 2^32, and expected period ~2^127.

The implementations provided are derived from PractRand.

Re-exports§

pub use rand_core;

Structs§

Sfc32
An sfc32 random number generator.
Sfc64
An sfc64 random number generator.