https://github.com/bogdanp/racket-buid
Universally unique, lexicographically-sortable flake ids for Racket.
https://github.com/bogdanp/racket-buid
flake-ids racket
Last synced: 3 months ago
JSON representation
Universally unique, lexicographically-sortable flake ids for Racket.
- Host: GitHub
- URL: https://github.com/bogdanp/racket-buid
- Owner: Bogdanp
- License: bsd-3-clause
- Created: 2020-04-05T11:25:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T06:16:29.000Z (9 months ago)
- Last Synced: 2025-02-08T22:11:56.784Z (5 months ago)
- Topics: flake-ids, racket
- Language: Racket
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# buid
Universally unique, lexicographically-sortable flake ids for Racket.
## Spec
A BUID is made up of a 40 bit time component and an 88 bit randomness
component. The time component represents the current number of
centiseconds since the UNIX timestamp `1586026830000`.BUIDs are represented as 22 character strings where the first 7
characters represent the 0-padded time component encoded in base 62
and the remaining 15 characters represent the 0-padded randomness
component encoded in base 62.The randomness component must have its most significant bit initially
set to 0 and all ids generated within the same centisecond must
increase monotonically.In binary, BUIDs are represented as 16 bytes, encoded in network order.
## License
buid is licensed under the 3-Clause BSD license.