mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
rand: use time microseconds too in default rand initialization; generate proper uuid_v4
This commit is contained in:
@@ -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`
|
||||
}
|
||||
|
Reference in New Issue
Block a user