fix #11772, JS random seed was too large (#11820)

(cherry picked from commit 3bb6d1916e)
This commit is contained in:
Miran
2019-07-25 10:53:50 +02:00
committed by narimiran
parent 100d6a1960
commit 1ee78916db

View File

@@ -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()