mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* random.c (fill_random_seed): enclosed conditionally used
variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bb1811d6a3
commit
383b905f5e
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
|||
Thu Mar 12 05:12:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Mar 12 05:14:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* random.c (fill_random_seed): enclosed conditionally used
|
||||
variables.
|
||||
|
||||
* thread_pthread.c (ruby_init_stack): range of rlim_cur may be
|
||||
larger than int.
|
||||
|
|
2
random.c
2
random.c
|
@ -279,8 +279,10 @@ fill_random_seed(unsigned long seed[DEFAULT_SEED_CNT])
|
|||
{
|
||||
static int n = 0;
|
||||
struct timeval tv;
|
||||
#ifdef S_ISCHR
|
||||
int fd;
|
||||
struct stat statbuf;
|
||||
#endif
|
||||
|
||||
memset(seed, 0, DEFAULT_SEED_LEN);
|
||||
|
||||
|
|
Loading…
Reference in a new issue