neco-rand
Deterministic non-cryptographic random generators and stable bucket assignment.
Use this crate for simulation, sampling, and deterministic cohort splitting. Use cryptographic key handling, secure nonces, and security-sensitive random generation in dedicated cryptographic random crates.
Features
SplitMix64seed expansionXoroshiro128Plusdeterministic PRNG- Stable bucket assignment from
key + experiment + salt
Usage
use ;
let mut seeder = new;
let seed = seeder.next_u64;
let mut rng = new;
let value = rng.next_f64;
let bucket_index = assign_bucket;
assert!;
assert!;
API
| Item | Description |
|---|---|
SplitMix64 |
Deterministic seed expansion and one-shot mixing |
Xoroshiro128Plus |
Fast deterministic PRNG for non-cryptographic use |
bucket |
Stable cohort assignment helpers |
License
MIT