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/trunk@2366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65a269376f
commit
07c69983ac
2 changed files with 5 additions and 1 deletions
2
random.c
2
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue