module Segno::Seed

Public Instance Methods

gen_seed(length) click to toggle source
# File lib/segno/seed.rb, line 4
def gen_seed length
  seeds = [seed]
  length.times do
    seeds << MurmurHash3::V32.int32_hash(seeds.last)
  end
  seeds.shift
  seeds
end