| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Having the OS/runtime provide a cryptographic entropy source is the
right thing to do, and we need it to initialize the default random
number generator.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
This allows runtime detection as to if `rand_bytes` is supported or not,
and lets us enable the test-case on all of the supported targets.
|
| | |
|
| | |
|
|
|
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).
|