# File lib/core/facets/string/random_binary.rb, line 6 def self.random_binary(n_bytes) ( Array.new(n_bytes){ rand(0x100) } ).pack('c*') end