From a6e0494a6fc6149a53908cf5c58da58679a539c8 Mon Sep 17 00:00:00 2001 From: Fabian Keller Date: Tue, 20 Jun 2017 12:11:09 +0200 Subject: fixes #5966 --- lib/pure/random.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/pure/random.nim') diff --git a/lib/pure/random.nim b/lib/pure/random.nim index 1f750edcd..8a32f7d9a 100644 --- a/lib/pure/random.nim +++ b/lib/pure/random.nim @@ -123,7 +123,8 @@ when not defined(nimscript): proc getMil(t: Time): int {.importcpp: "getTime", nodecl.} randomize(getMil times.getTime()) else: - randomize(int times.getTime()) + let time = int(times.epochTime() * 1_000_000_000) + randomize(time) {.pop.} -- cgit 1.4.1-2-gfad0