Registry / crypto / rand-core

rand-core

JSON →
library0.10.1rscratesunverified

Core random number generation traits and tools for implementation.

# Cargo.toml [dependencies] rand_core = "0.10.1"
INSTALL
IMPORT
SIG · RAND-CORE
R
rand-core
cryptorustv0.10.1
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.

RngCore
use rand_core::RngCore;

Generate a random u32 using the OS entropy source.

use rand_core::{RngCore, SeedableRng}; use rand_core::OsRng; fn main() { let mut rng = OsRng; let value: u32 = rng.next_u32(); println!("{}", value); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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