[ruby-cvs:59331] kosaki:r52180 (trunk): * random.c (fill_random_bytes_syscall): don't use GRND_NONBLOCK.
kosaki at ruby-lang.org
kosaki at ruby-lang.org
Sun Oct 18 14:42:37 JST 2015
kosaki 2015-10-18 14:42:37 +0900 (Sun, 18 Oct 2015)
New Revision: 52180
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52180
Log:
* 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.
Modified files:
trunk/ChangeLog
trunk/random.c
More information about the ruby-cvs
mailing list