1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

crypto: document rest of rand submodule (#8580)

This commit is contained in:
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

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 {