From 07c69983ac1cffb1e26f8db7c7d284428089ef56 Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 11 Apr 2002 11:00:02 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ random.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dec9f22c56..0d75f673cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ Thu Apr 11 19:10:37 2002 WATANABE Hirofumi * io.c (remain_size): IO#read returns "" if file.size == 0. + * random.c (rand_init): add check for initstate(3). + + * configure.in: ditto. + Thu Apr 11 09:31:19 2002 Takaaki Tateishi * ext/dl/ptr.c: raise() -> rb_raise(). (Thanks Tetsuya Watanabe) diff --git a/random.c b/random.c index e76437285b..ba568cdb82 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); }