diff options
author | def <dennis@felsin9.de> | 2014-11-13 21:34:46 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2014-11-13 21:34:46 +0100 |
commit | f52fd8785f3c3247ef5b018738f2920b79b7f8f6 (patch) | |
tree | b1002949a35417408f9b33fdb42921fc91f83f00 /lib/pure/math.nim | |
parent | 06a4ab54aa53ba129744f34a04a711ac67f8d043 (diff) | |
download | Nim-f52fd8785f3c3247ef5b018738f2920b79b7f8f6.tar.gz |
Fix some deprecation warnings caused by renames
Diffstat (limited to 'lib/pure/math.nim')
-rw-r--r-- | lib/pure/math.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim index 1b6572d53..987c35d1c 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -196,7 +196,6 @@ when not defined(JS): ## computes x to power raised of y. # C procs: - proc gettime(dummy: ptr cint): cint {.importc: "time", header: "<time.h>".} proc srand(seed: cint) {.importc: "srand", header: "<stdlib.h>".} proc rand(): cint {.importc: "rand", header: "<stdlib.h>".} @@ -331,6 +330,8 @@ proc standardDeviation*(s: RunningStat): float = {.pop.} when isMainModule and not defined(JS): + proc gettime(dummy: ptr cint): cint {.importc: "time", header: "<time.h>".} + # Verifies random seed initialization. let seed = gettime(nil) randomize(seed) |