This commit is contained in:
Yu-Vitaqua-fer-Chronos 2023-12-15 19:37:57 +00:00
parent 677855bbd8
commit d0470fca92

View file

@ -176,6 +176,9 @@ proc wait(gen: ULIDGenerator): int64 {.gcsafe.} =
proc ulid*(gen: ULIDGenerator, timestamp = LowInt48, randomness = LowUint80): ULID {.gcsafe.} =
## Generate a `ULID`, if timestamp is equal to `0`, the `randomness` parameter
## will be ignored.
##
## See also:
## * `ulid(int64, UInt128) <#ulid_2>`_
runnableExamples:
let gen = initUlidGenerator()
@ -208,7 +211,7 @@ proc ulid*(timestamp = LowInt48, randomness = LowUint80): ULID =
## Generate a `ULID` using the global generator.
##
## See also:
## * `ulid(ULIDGenerator, int64, UInt128) <#ulid,ULIDGenerator,int64>`_
## * `ulid(ULIDGenerator, int64, UInt128) <#ulid,ULIDGenerator>`_
runnableExamples:
echo ulid()