aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2021-11-11 07:59:45 +0000
committerYawning Angel <yawning@schwanenlied.me>2021-11-17 14:00:00 +0000
commit6bafa21bee56ccfbdf74f88bf7937a900a7d22d9 (patch)
tree382a1c9a2f4811bebdd953180684ee6e05827c64 /src/checker.cpp
parent61c581baeb94ac73cbb25e93af2710d12e15f25c (diff)
crypto: Add rand_bytes
This adds `rand_bytes(dst: []byte)` which fills the destination buffer with entropy from the cryptographic random number generator. This takes the "simple is best" approach and just directly returns the OS CSPRNG output instead of doing anything fancy (a la OpenBSD's arc4random).
Diffstat (limited to 'src/checker.cpp')
0 files changed, 0 insertions, 0 deletions