mirror of
https://github.com/Yu-Vitaqua-fer-Chronos/NULID.git
synced 2024-11-21 22:12:46 +00:00
Edit docs to have a note about -d:nulidInsecureRandom
.
This commit is contained in:
parent
924c385154
commit
57daeacda6
|
@ -2,6 +2,9 @@
|
|||
This is an implementation of the [ULID](https://github.com/ulid/spec)
|
||||
spec in Nim!
|
||||
|
||||
## Compile Flags
|
||||
`-d:nulidInsecureRandom`: Uses `std/random` instead of `std/sysrand`.
|
||||
|
||||
## Usage
|
||||
```nim
|
||||
let gen = NULIDGenerator()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "0.2.4"
|
||||
version = "0.2.5"
|
||||
author = "Yu Vitaqua fer Chronos"
|
||||
description = "An implementation of ULID!"
|
||||
license = "CC0"
|
||||
|
|
|
@ -18,6 +18,13 @@ when InsecureRandom:
|
|||
else:
|
||||
import std/sysrand
|
||||
|
||||
##[
|
||||
Note: `--define:nulidInsecureRandom` can be passed to the compiler to make it
|
||||
so that `std/random` is used instead of `std/sysrand`.
|
||||
The JS backend and Nimscript use this by default (whether either work with NULID
|
||||
is untested).
|
||||
]##
|
||||
|
||||
type
|
||||
NULID* = object
|
||||
## An object representing a ULID.
|
||||
|
|
Loading…
Reference in a new issue