parent
6cad5c7861
commit
ac3449b93b
1 changed files with 4 additions and 4 deletions
|
|
@ -607,8 +607,8 @@ when not defined(nimscript):
|
|||
## See also:
|
||||
## * `randomize proc<#randomize,int64>`_ that accepts a seed
|
||||
## * `initRand proc<#initRand,int64>`_
|
||||
when defined(js):
|
||||
let time = int64(times.epochTime() * 1_000_000_000)
|
||||
when defined(JS):
|
||||
let time = int64(times.epochTime() * 100_000)
|
||||
randomize(time)
|
||||
else:
|
||||
let now = times.getTime()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue