mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
rand: fix uuid_v7 seperator (#24348)
This commit is contained in:
parent
5fb27ac35a
commit
649041c8b4
1 changed files with 2 additions and 2 deletions
|
@ -48,9 +48,9 @@ fn internal_uuid(version u8, rand_1 u64, rand_2 u64) string {
|
|||
buf[start + 2] = hex_chars[(val >> 4) & 0xF]
|
||||
buf[start + 3] = hex_chars[val & 0xF]
|
||||
start += 4
|
||||
// insert `_` at specified locations
|
||||
// insert `-` at specified locations
|
||||
if start in [8, 13, 18, 23]! {
|
||||
buf[start] = `_`
|
||||
buf[start] = `-`
|
||||
start++
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue