diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 05:42:37 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 05:42:37 +0000 |
commit | 0198b5738c1c21b378f81c9bdfb4e7d6108f7c5a (patch) | |
tree | 9047c01efaecc39bf6c55bc71a9e446b6f3f6940 /ChangeLog | |
parent | 38b6ffb812914ceadbe2ad9acea2bb618c48e82c (diff) | |
download | ruby-0198b5738c1c21b378f81c9bdfb4e7d6108f7c5a.tar.gz |
* random.c (fill_random_bytes_syscall): don't use GRND_NONBLOCK.
It is meaningless. If SYS_getrandom(GRND_NONBLOCK) return
EAGAIN, we eventually call fill_random_bytes_urandom() and
it block such as SYS_getrandom() without GRND_NONBLOCK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Sun Oct 18 13:30:56 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * random.c (fill_random_bytes_syscall): don't use GRND_NONBLOCK. + It is meaningless. If SYS_getrandom(GRND_NONBLOCK) return + EAGAIN, we eventually call fill_random_bytes_urandom() and + it block such as SYS_getrandom() without GRND_NONBLOCK. + Sun Oct 18 13:24:17 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * random.c (fill_random_bytes_syscall): use ATOMIC_SET() for |