Module: SJCL::Random

Defined in:
lib/sjcl/random.rb

Class Method Summary collapse

Class Method Details

.randomWords(len) ⇒ Object

Number of 4 byte words to retun



6
7
8
# File 'lib/sjcl/random.rb', line 6

def self.randomWords(len)
   SJCL::Codec::Hex.toBits(SecureRandom.hex(len*4))
end