oids: switch from PRNG to random module (#16203)
* switch from PRNG to random module * fix the regression * comments + tests * runnableExamples * make oids better
This commit is contained in:
parent
bab0aa6ecf
commit
89a21e4ec7
2 changed files with 25 additions and 20 deletions
6
tests/stdlib/toids.nim
Normal file
6
tests/stdlib/toids.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import std/oids
|
||||
|
||||
|
||||
block: # genOid
|
||||
let x = genOid()
|
||||
doAssert ($x).len == 24
|
||||
Loading…
Add table
Add a link
Reference in a new issue