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

crypto.rand: rename read_u64 to int_u64 + clean up

This commit is contained in:
joe-conigliaro
2019-09-18 23:12:16 +10:00
committed by Alexander Medvednikov
parent f187c35fb2
commit b9cc6535f6
2 changed files with 13 additions and 17 deletions

View File

@ -29,13 +29,13 @@ fn test_crypto_rand_read() {
assert diff_percentage <= max_percentage_diff
}
fn test_crypto_rand_read_u64() {
fn test_crypto_rand_int_u64() {
max := u64(200)
r1 := rand.read_u64(max) or {
r1 := rand.int_u64(max) or {
assert false
return
}
r2 := rand.read_u64(max) or {
r2 := rand.int_u64(max) or {
assert false
return
}