Registry / crypto / pcg-rand

pcg-rand

JSON →
library0.13.0rscratesunverified

A pure Rust implementation of the PCG family of random number generators.

# Cargo.toml [dependencies] pcg_rand = "0.13.0"
INSTALL
IMPORT
SIG · PCG-RAND
P
pcg-rand
cryptorustv0.13.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.

Pcg64
use pcg_rand::Pcg64;

Generates a random u32 using the PCG64 algorithm.

use pcg_rand::Pcg64; use rand::SeedableRng; use rand::Rng; let mut rng = Pcg64::seed_from_u64(12345); let n: u32 = rng.gen(); println!("{}", n);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.13.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
pcg-rand — cargo add pcg-rand · libregistry