diff options
author | Miran <narimiran@disroot.org> | 2019-07-25 10:53:50 +0200 |
---|---|---|
committer | Varriount <Varriount@users.noreply.github.com> | 2019-07-25 04:53:50 -0400 |
commit | 3bb6d1916e3ebae9196d9dc87787de3e26e9f908 (patch) | |
tree | 8f39b17104808c10422c607d7ff024cb7be9d951 /lib/pure/random.nim | |
parent | 3ccda773d656e2d6c945bb5ffcf09c7d083452e3 (diff) | |
download | Nim-3bb6d1916e3ebae9196d9dc87787de3e26e9f908.tar.gz |
fix #11772, JS random seed was too large (#11820)
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 ac38898c9..e292f9572 100644 --- a/lib/pure/random.nim +++ b/lib/pure/random.nim @@ -608,7 +608,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() * 100_000) + let time = int64(times.epochTime() * 1000) randomize(time) else: let now = times.getTime() |