summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-11 11:00:02 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-11 11:00:02 +0000
commit07c69983ac1cffb1e26f8db7c7d284428089ef56 (patch)
tree0ee8e460a5da255e2909f550e3e4a5147910cb84 /random.c
parent65a269376f7262212512f29f5ace7d8702b3edf4 (diff)
* random.c (rand_init): add check for initstate(3).
* configure.in: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index e764372..ba568cd 100644
--- a/random.c
+++ b/random.c
@@ -88,7 +88,7 @@ rand_init(seed)
int old;
static unsigned int saved_seed;
-#if defined HAVE_RANDOM && !defined __UCLIBC__
+#if defined HAVE_INITSTATE
if (first == 1) {
initstate(1, state, sizeof state);
}