mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
rand: add uuid_v7(), session function, simplify uuid_v4() (#24313)
This commit is contained in:
parent
0bcfd0f9ea
commit
e0a7f87693
4 changed files with 150 additions and 59 deletions
|
@ -701,7 +701,7 @@ pub fn read(mut buf []u8) {
|
|||
}
|
||||
|
||||
const english_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
||||
const hex_chars = 'abcdef0123456789'
|
||||
const hex_chars = '0123456789abcdef'
|
||||
const ascii_chars = '!"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^_`abcdefghijklmnopqrstuvwxyz{|}~'
|
||||
|
||||
// ulid generates an unique lexicographically sortable identifier.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue