diff --git a/core/crypto/aes/aes.odin b/core/crypto/aes/aes.odin index e895c5fe0..ef305fd21 100644 --- a/core/crypto/aes/aes.odin +++ b/core/crypto/aes/aes.odin @@ -6,7 +6,6 @@ See: - https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38a.pdf - https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf */ - package aes import "core:crypto/_aes" diff --git a/core/crypto/crypto.odin b/core/crypto/crypto.odin index f83d20dd7..323cc45d6 100644 --- a/core/crypto/crypto.odin +++ b/core/crypto/crypto.odin @@ -60,7 +60,11 @@ rand_bytes :: proc (dst: []byte) { _rand_bytes(dst) } - +// random_generator returns a `runtime.Random_Generator` backed by the +// system entropy source. +// +// Support for the system entropy source can be checked with the +// `HAS_RAND_BYTES` boolean constant. random_generator :: proc() -> runtime.Random_Generator { return { procedure = proc(data: rawptr, mode: runtime.Random_Generator_Mode, p: []byte) {