summary refs log tree commit diff stats
path: root/lib/pure/oids.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-07-15 09:30:58 +0200
committerAraq <rumpf_a@web.de>2014-07-15 09:30:58 +0200
commit0743f78012e954f5295df7923ccabd472a5a7502 (patch)
tree5d681c9835f01019e8ae83e14c0cd49d1a6c0d38 /lib/pure/oids.nim
parent7fa399f51c39e6661876223009d5003cd2e0cf99 (diff)
parent18ded6c23d72cd21fa0aa10ff61dc6f9af40832c (diff)
downloadNim-0743f78012e954f5295df7923ccabd472a5a7502.tar.gz
Merge branch 'master' of https://github.com/Araq/Nimrod
Diffstat (limited to 'lib/pure/oids.nim')
-rw-r--r--lib/pure/oids.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/oids.nim b/lib/pure/oids.nim
index b3e74d2a1..2843e6c65 100644
--- a/lib/pure/oids.nim
+++ b/lib/pure/oids.nim
@@ -62,9 +62,9 @@ var
 
 proc genOid*(): TOid =
   ## generates a new OID.
-  proc rand(): cint {.importc: "rand", nodecl.}
+  proc rand(): cint {.importc: "rand", header: "<stdlib.h>", nodecl.}
   proc gettime(dummy: ptr cint): cint {.importc: "time", header: "<time.h>".}
-  proc srand(seed: cint) {.importc: "srand", nodecl.}
+  proc srand(seed: cint) {.importc: "srand", header: "<stdlib.h>", nodecl.}
 
   var t = gettime(nil)