mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
rand: use time microseconds too in default rand initialization; generate proper uuid_v4
This commit is contained in:
parent
c429fa7e27
commit
289974dd15
4 changed files with 17 additions and 5 deletions
|
@ -186,4 +186,7 @@ fn test_rand_uuid_v4() {
|
|||
assert uuid1.len == 36
|
||||
assert uuid2.len == 36
|
||||
assert uuid3.len == 36
|
||||
assert uuid1[14] == `4`
|
||||
assert uuid2[14] == `4`
|
||||
assert uuid3[14] == `4`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue