mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
* switch from PRNG to random module
* fix the regression
* comments + tests
* runnableExamples
* make oids better
(cherry picked from commit 89a21e4ec7)
7 lines
79 B
Nim
7 lines
79 B
Nim
import std/oids
|
|
|
|
|
|
block: # genOid
|
|
let x = genOid()
|
|
doAssert ($x).len == 24
|