diff options
author | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-04 23:44:59 +0000 |
---|---|---|
committer | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-04 23:44:59 +0000 |
commit | 270630c6286f1b2250afd2a5cfb2211a55411741 (patch) | |
tree | 2218fd6eba5eda5e2db5c22ebe310eb721d9a4f6 /benchmark | |
parent | 1d00e40e0cf48ad25c35fa77c54e7dd1571bca23 (diff) | |
download | ruby-270630c6286f1b2250afd2a5cfb2211a55411741.tar.gz |
* random.c (random_raw_seed): Avoid calling fill_random_bytes()
if the requested size is 0. AIX returns -1 for 0-byte read from
/dev/urandom, while other UNIX returns 0. With this change,
Random.raw_seed(0) consistently retuns "" in any UNIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
0 files changed, 0 insertions, 0 deletions