From f52fd8785f3c3247ef5b018738f2920b79b7f8f6 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 13 Nov 2014 21:34:46 +0100 Subject: Fix some deprecation warnings caused by renames --- lib/pure/math.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/pure/math.nim') 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: "".} proc srand(seed: cint) {.importc: "srand", header: "".} proc rand(): cint {.importc: "rand", header: "".} @@ -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: "".} + # Verifies random seed initialization. let seed = gettime(nil) randomize(seed) -- cgit 1.4.1-2-gfad0