Skip to main content

random_seed_bytes

Function random_seed_bytes 

Source
pub(super) fn random_seed_bytes() -> [u8; 32]
Expand description

32 bytes of randomness via two v4 UUIDs, for every key table in this module (LAN, WAN, jekt, WAN identity) and the agent tokens. Avoids adding a rand/getrandom dependency: uuid’s v4 generation is already CSPRNG-backed, and ed25519_dalek::SigningKey::from_bytes accepts any 32 bytes of randomness as a valid seed (deterministic derivation from the seed, not a call into an RNG itself).