mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
random.c: comment [ci skip]
* random.c (fill_random_bytes_urandom): fix comment typos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0751bc3fad
commit
503752b14c
1 changed files with 3 additions and 3 deletions
6
random.c
6
random.c
|
@ -456,9 +456,9 @@ static int
|
|||
fill_random_bytes_urandom(void *seed, size_t size)
|
||||
{
|
||||
/*
|
||||
O_NONBLOCK and O_NOCTTY is meaningless if /dev/urandom correctly point
|
||||
to urandom device. But it protect from several strange hazard if
|
||||
/dev/urandom is not urandom device.
|
||||
O_NONBLOCK and O_NOCTTY is meaningless if /dev/urandom correctly points
|
||||
to a urandom device. But it protects from several strange hazard if
|
||||
/dev/urandom is not a urandom device.
|
||||
*/
|
||||
int fd = rb_cloexec_open("/dev/urandom",
|
||||
# ifdef O_NONBLOCK
|
||||
|
|
Loading…
Reference in a new issue