-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New library version, rename NULID* types to ULID, remove async code (…
…useless), add a lock and make threadsafe
- Loading branch information
Yu-Vitaqua-fer-Chronos
committed
Oct 26, 2023
1 parent
57daeac
commit 534ba1c
Showing
4 changed files
with
91 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import nint128 | ||
|
||
const HighUint80* = u128("1208925819614629174706176") | ||
# No sysrand on the JS backend nor VM (does this even work on either?) | ||
const | ||
HighInt48* = 281474976710655'i64 | ||
HighUint80* = u128("1208925819614629174706176") | ||
|
||
# No sysrand on the JS backend nor VM (though neither is expected to work). | ||
const InsecureRandom* = defined(nulidInsecureRandom) or defined(js) or defined(nimvm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters