Kim Alvefur
3619de6000
util.uuid: Add UUIDv7
...
Allows sorting by id as a substitute for sorting by timestamp since it
has the timestamp in the encoded in the first part, and only things that
happen extremely close together may get out of order by such a sort,
which might not matter.
From draft-ietf-uuidrev-rfc4122bis formerly draft-peabody-dispatch-new-uuid-format
2021-08-15 14:44:21 +02:00
Kim Alvefur
43531740f9
util: Prefix module imports with prosody namespace
2023-03-17 16:23:16 +01:00
Matthew Wild
ab835fed13
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
2022-03-04 15:22:45 +00:00
Kim Alvefur
c515c93724
util.uuid: Take random byte directly instead of the low bits from the ascii value of a hex nibble
2016-01-06 03:28:31 +01:00
Matthew Wild
a540fdb9f4
util.uuid: Use util.hex and util.random
2014-09-02 17:58:12 +01:00
Florian Zeitz
1d833bb807
Remove all trailing whitespace
2013-08-09 17:48:21 +02:00
Waqas Hussain
3ee35fe849
util.uuid: Use a local instead of a global.
2010-04-01 19:27:26 +05:00
Matthew Wild
2bc0606453
Update copyright headers for 2010
2010-03-22 17:06:15 +00:00
Matthew Wild
118883d655
Remove version number from copyright headers
2009-07-10 03:11:45 +01:00
Waqas Hussain
e60635aa94
util.uuid: Added function seed(string) to allow further seeding of the PRNG
2009-06-04 19:55:56 +05:00
Waqas Hussain
4ee16e78eb
util.uuid: Now generates RFC 4122 complaint UUIDs (version 4 - random)
2009-06-04 18:04:26 +05:00
Waqas Hussain
27379bb148
util.uuid: More uniqueness!
2009-06-04 17:41:55 +05:00
Matthew Wild
c80f91dc02
0.3->0.4
2009-03-20 20:16:25 +00:00
Matthew Wild
6db4951194
util.uuid: Return a string, not a number. Looked so innocent.
2009-02-01 02:17:56 +00:00
Matthew Wild
c5ee166aa9
Update copyright notices for 2009
2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f
0.2->0.3
2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d
GPL->MIT!
2009-01-30 17:22:56 +00:00
Matthew Wild
d3ad4a5123
0.1 -> 0.2
2008-12-10 15:44:03 +00:00
Matthew Wild
0c5cc83112
Insert copyright/license headers
2008-12-03 14:39:07 +00:00
Matthew Wild
eb8e9997e0
dialback keys now verified
2008-10-24 03:06:55 +01:00
Matthew Wild
f6924a64c0
Add "uuid" library and make sessionmanager use this.
...
...and yes, the uuid generation needs work :P
2008-10-04 02:12:54 +01:00