Registry / crypto / xorshift

xorshift

JSON →
library0.1.3rscratesunverified

Implementation of xoroshiro128+, xorshift128+, xorshift1024*, and splitmix64 PRNGs.

# Cargo.toml [dependencies] xorshift = "0.1.3"
INSTALL
IMPORT
SIG · XORSHIFT
X
xorshift
cryptorustv0.1.3
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.

Xoroshiro128Plus
use xorshift::Xoroshiro128Plus;

Generates a random u64 using the xoroshiro128+ algorithm.

use xorshift::Xoroshiro128Plus; use rand::SeedableRng; let mut rng = Xoroshiro128Plus::from_seed([0u8; 16]); let val: u64 = rng.gen(); println!("Random value: {}", val);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
Resources
xorshift — cargo add xorshift · libregistry