Skip to main content

mint_token

Function mint_token 

Source
pub fn mint_token() -> String
Expand description

Mint a hex token (64 chars from /dev/urandom, 32 from the fallback).

Primary source is 32 bytes of /dev/urandom. If that is unreadable — very unusual on the Linux hosts this dev tool targets — fall back to two differently-seeded RandomState hashes over distinct nano-time samples. That fallback is not cryptographic, but this token is a loopback dev stub; the auth iteration replaces it (ARCH.md §9 notebooks).