Flowdock
method

gen_random_urandom

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: SecureRandom
gen_random_urandom(n) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/securerandom.rb, line 97
    def gen_random_urandom(n)
      ret = Random.urandom(n)
      unless ret
        raise NotImplementedError, "No random device"
      end
      unless ret.length == n
        raise NotImplementedError, "Unexpected partial read from random device: only #{ret.length} for #{n} bytes"
      end
      ret
    end
Register or log in to add new notes.