mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
refine an error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e76660caad
commit
e1ee200bf7
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module SecureRandom
|
|||
@has_urandom = true
|
||||
ret = f.read(n)
|
||||
if ret.length != n
|
||||
raise NotImplementedError, "Unexpected partial read from random device: only #{ret.length} for #{n}"
|
||||
raise NotImplementedError, "Unexpected partial read from random device: only #{ret.length} for #{n} bytes"
|
||||
end
|
||||
return ret
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue