Skip to main content

random_integer

Function random_integer 

Source
pub fn random_integer() -> u32
Expand description

Generates a cryptographically secure random 32-bit unsigned integer.

Uses the operating system RNG (CSPRNG) to generate a value between 0 and 4,294,967,295 (2^32 - 1).

ยงReturns

A random u32.