Comment Comment by infraruby require "securerandom" module SecureRandom F = File.open("/dev/urandom") def self.random_bytes(n = nil) F.read(n || 16) end end parent infraruby 10 years ago