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
6
random.c
6
random.c
@ -456,9 +456,9 @@ static int
|
|||||||
fill_random_bytes_urandom(void *seed, size_t size)
|
fill_random_bytes_urandom(void *seed, size_t size)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
O_NONBLOCK and O_NOCTTY is meaningless if /dev/urandom correctly point
|
O_NONBLOCK and O_NOCTTY is meaningless if /dev/urandom correctly points
|
||||||
to urandom device. But it protect from several strange hazard if
|
to a urandom device. But it protects from several strange hazard if
|
||||||
/dev/urandom is not urandom device.
|
/dev/urandom is not a urandom device.
|
||||||
*/
|
*/
|
||||||
int fd = rb_cloexec_open("/dev/urandom",
|
int fd = rb_cloexec_open("/dev/urandom",
|
||||||
# ifdef O_NONBLOCK
|
# ifdef O_NONBLOCK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user