Module random

Module random 

Source
Expand description

Secure random number generation

Functionsยง

generate_random_bytes
Generate cryptographically secure random bytes
generate_random_hex
Generate a random hexadecimal string (for tokens, IDs, etc.)
generate_salt
Generate a random salt for password hashing/key derivation