projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299e7c3
)
Change to random call so it will work on linux
author
bdemsky
<bdemsky>
Thu, 14 Dec 2006 18:07:46 +0000
(18:07 +0000)
committer
bdemsky
<bdemsky>
Thu, 14 Dec 2006 18:07:46 +0000
(18:07 +0000)
Robust/src/Runtime/option.c
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/option.c
b/Robust/src/Runtime/option.c
index d1500d630cccade0065214f5910416e72ed9eeaa..552f996447fc8c30d11510b7a973f4aba4fd0181 100644
(file)
--- a/
Robust/src/Runtime/option.c
+++ b/
Robust/src/Runtime/option.c
@@
-1,6
+1,7
@@
#include "option.h"
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include "runtime.h"
extern char *options;
@@
-71,7
+72,7
@@
void processOptions() {
options=strchr(options,' ');
if (options!=NULL) options++;
printf("Initializing random number generator.\n");
- srandom
dev(
);
+ srandom
(time(NULL)
);
} else
break;
}