From fb01fbdf40a85172cce35dc6cd262742c5b7c238 Mon Sep 17 00:00:00 2001 From: narimiran Date: Tue, 15 Oct 2019 10:32:35 +0200 Subject: [PATCH] [backport] fix #12418, fix `random.randomize` on JS backend --- 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 c3ccd121bfc1e..b10bc43c824ea 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()