crypto: document rest of rand submodule (#8580)

pull/8593/head^2
Larpon 2021-02-05 19:26:34 +01:00 committed by GitHub
parent 59c1c77bfe
commit 1101533dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -7,6 +7,7 @@ module rand
import math.bits
import encoding.binary
// int_u64 returns a random unsigned 64-bit integer `u64` read from a real OS source of entropy.
pub fn int_u64(max u64) ?u64 {
bitlen := bits.len_64(max)
if bitlen == 0 {