[][src]Crate rand_seeder

A universal seeder based on SipHash.

This crate is designed for use with the rand crates, allowing any RNG supporting SeedableRng to be seeded from any hashable value. It provides the following:

  • SipHasher, a portable implementation of the SipHash 2-4 hash function. According to the authors, SipHash is a secure, fast and simple keyed hash function.
  • SipRng, a generator based on the SipHash state and mixing operations. It is statistically high-quality, passing practrand tests to at least 4 TiB.
  • A universal Seeder as a convenience wrapper around the above.

Seeding is designed to be fast, robust, flexible and portable. This library is intended for use in simulations and games, allowing e.g. any keyword to reproduce a simulation or procedurally generated world.

This library is not intended for cryptographic applications, and definitely not for password hashing.

Re-exports

pub extern crate rand_core;

Structs

Seeder

A universal seeder.

SipHasher

A portable implementation of SipHash 2-4.

SipRng

A generator built using SipHash's primitives.