Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initRand now uses strict monotonic counter to guarantee uniqueness #18149

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
fixup [skip ci]
timotheecour committed Aug 23, 2021
commit 2d80e5c42cd898feffa21609a985876edf072991
2 changes: 1 addition & 1 deletion lib/pure/random.nim
Original file line number Diff line number Diff line change
@@ -625,7 +625,7 @@ when not defined(nimscript) and not defined(standalone):
##
## The resulting state is independent of the default RNG's state.
##
## **Note:** In VM, requires `--experimental:vmops`
## **Note:** Does not work for NimScript or the compile-time VM.
##
## See also:
## * `initRand proc<#initRand,int64>`_ that accepts a seed for a new Rand state