OSDN Git Service
(root)
/
hmh
/
hhml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83485b3
)
fix.
author
visor
<visor@users.sourceforge.jp>
Sun, 8 Jan 2012 14:59:22 +0000
(23:59 +0900)
committer
visor
<visor@users.sourceforge.jp>
Sun, 8 Jan 2012 14:59:22 +0000
(23:59 +0900)
lib/util_random.cc
patch
|
blob
|
history
diff --git
a/lib/util_random.cc
b/lib/util_random.cc
index
2a3c600
..
0c177fc
100644
(file)
--- a/
lib/util_random.cc
+++ b/
lib/util_random.cc
@@
-96,5
+96,7
@@
double randDouble () {
}
long random_int (unsigned long n) {
+ if (! Inited)
+ init ();
return random () % n;
}