diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 11:00:02 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 11:00:02 +0000 |
commit | 21d46d0d1076fca18315a9a27108f47034bc352b (patch) | |
tree | 0ee8e460a5da255e2909f550e3e4a5147910cb84 /random.c | |
parent | 0f3122adfbd2509fe5398a554742823c8a558e43 (diff) | |
download | ruby-21d46d0d1076fca18315a9a27108f47034bc352b.tar.gz ruby-21d46d0d1076fca18315a9a27108f47034bc352b.tar.xz ruby-21d46d0d1076fca18315a9a27108f47034bc352b.zip |
* random.c (rand_init): add check for initstate(3).
* configure.in: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |