Registry / utility / rand-xorshift

rand-xorshift

JSON →
library0.5.0rscratesunverified

Xorshift random number generator

# Cargo.toml [dependencies] rand_xorshift = "0.5.0"
INSTALL
IMPORT
SIG · RAND-XORSHIFT
R
rand-xorshift
utilityrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

XorShiftRng
✓ use rand_xorshift::XorShiftRng;

Creates a seeded Xorshift RNG and generates a random u32.

use rand_xorshift::XorShiftRng; use rand::SeedableRng; fn main() { let mut rng = XorShiftRng::seed_from_u64(42); println!("{}", rng.gen::<u32>()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
rand-xorshift — cargo add rand-xorshift · libregistry