This commit is contained in:
Fabian Keller 2017-06-20 12:11:09 +02:00 • committed by Andreas Rumpf
commit a6e0494a6f
3 changed files with 31 additions and 6 deletions

View file

@ -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.}