summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-16 00:39:34 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-16 00:39:34 +0000
commit0c2f92daad93c57af1720e3cbafcdcae9bd0cd62 (patch)
tree4cebeba621f926fb79d28983aa0a7ac981889fa3 /tool
parentd2333dd92c3076e3d86e5ceff91069a56dcfa8a4 (diff)
random.c: make sure that Random.urandom returns required-length buffer
getrandom(2) and read(2) (from /dev/urandom) may return a random buffer whose length is shorter than required. This change makes sure that they get enough buffer by using a loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
0 files changed, 0 insertions, 0 deletions