You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: cryptographically secure random bytes #404
Marqraft generates page ids and per-process session tokens from cryptographically secure randomness:
foul identifier -> String do
return "${BEAM.binary.encode_hex(BEAM.crypto.strong_rand_bytes(32), :lowercase)}"
end
Random has no secure source that I could find. Suggested: Random.secureBytes(count) -> Binary (Binary.hex already exists for the encoding), and perhaps Random.token(bytes) -> String.
Activity
akoskovacs commentedon Sep 28, 2026
Implemented in 7ac10d8 (on main); verified by its spec/test.