summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 11:15:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 11:15:46 +0000
commite1ee200bf711df20fc0c89e6b78de01ceb0ef86e (patch)
treeb1b532bc79c3d19cd61add48f44afb2ee4594384
parente76660caad5cda23abd65b7431f2df635280a741 (diff)
refine an error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/securerandom.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb
index f550ce6615c..99e54db1dd3 100644
--- a/lib/securerandom.rb
+++ b/lib/securerandom.rb
@@ -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
}