diff options
author | Miran <narimiran@disroot.org> | 2019-10-15 16:29:32 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-15 16:29:32 +0200 |
commit | 5f5ac8ce1616c7a68002b99ba4ffc36ab3a3ec42 (patch) | |
tree | ac1a293883aa1ff4cc909624768784c4dca6657d /lib/pure/random.nim | |
parent | 1aed455e7cc22368299a40bb16f73d43ed8c544e (diff) | |
download | Nim-5f5ac8ce1616c7a68002b99ba4ffc36ab3a3ec42.tar.gz |
[backport] fix #12418, fix `random.randomize` on JS backend (#12432)
Diffstat (limited to 'lib/pure/random.nim')
-rw-r--r-- | lib/pure/random.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/random.nim b/lib/pure/random.nim index c3ccd121b..b10bc43c8 100644 --- a/lib/pure/random.nim +++ b/lib/pure/random.nim @@ -642,7 +642,7 @@ when not defined(nimscript): ## * `randomize proc<#randomize,int64>`_ that accepts a seed ## * `initRand proc<#initRand,int64>`_ when defined(JS): - let time = int64(times.epochTime() * 1000) + let time = int64(times.epochTime() * 1000) and 0x7fff_ffff randomize(time) else: let now = times.getTime() |