Sha256: dd8cf17f8b825127918bc08912dca779e448d7455f631283eeefe10c4f485b33
Contents?: true
Size: 174 Bytes
Versions: 3
Compression:
Stored size: 174 Bytes
Contents
require 'securerandom' module SJCL::Random # Number of 4 byte words to retun def self.randomWords(len) SJCL::Codec::Hex.toBits(SecureRandom.hex(len*4)) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sjcl-1.0.1 | lib/sjcl/random.rb |
sjcl-1.0.0 | lib/sjcl/random.rb |
sjcl-0.0.1 | lib/sjcl/random.rb |