From 5f5ac8ce1616c7a68002b99ba4ffc36ab3a3ec42 Mon Sep 17 00:00:00 2001 From: Miran Date: Tue, 15 Oct 2019 16:29:32 +0200 Subject: [PATCH] [backport] fix #12418, fix `random.randomize` on JS backend (#12432) --- 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 c3ccd121bf..b10bc43c82 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()