1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* random.c (rand_init): add check for initstate(3).

* configure.in: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2002-04-11 11:00:02 +00:00
parent 24760e1840
commit 8f0e6b6c16
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,10 @@ Thu Apr 11 18:40:38 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* io.c (read_all): return "" if file.size == 0.
* random.c (rand_init): add check for initstate(3).
* configure.in: ditto.
Thu Apr 11 01:55:52 2002 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cgi/session.rb: support for multipart form.

View file

@ -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);
}