From 3bb6d1916e3ebae9196d9dc87787de3e26e9f908 Mon Sep 17 00:00:00 2001 From: Miran Date: Thu, 25 Jul 2019 10:53:50 +0200 Subject: [PATCH] fix #11772, JS random seed was too large (#11820) --- lib/pure/random.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/random.nim b/lib/pure/random.nim index ac38898c96..e292f95728 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()