diff options
Diffstat (limited to 'lib/securerandom.rb')
-rw-r--r-- | lib/securerandom.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 04e8bc205e..eede2fef04 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -78,7 +78,7 @@ module SecureRandom raise Errno::ENOENT end @has_urandom = true - ret = f.readpartial(n) + ret = f.read(n) if ret.length != n raise NotImplementedError, "Unexpected partial read from random device" end |