Sha256: 468e6dbfc8a43ef2bd8417831a2d688f08ac551155a599e862003ff50dd0005e

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

require 'digest/murmurhash'
include Digest

def all_classes
  [
    MurmurHash1,
    MurmurHash2,
    MurmurHash2A,
    MurmurHash64A,
    MurmurHash64B,
    MurmurHashNeutral2,
    MurmurHashAligned2,
    MurmurHash3_x86_32,
    MurmurHash3_x86_128,
    MurmurHash3_x64_128
  ]
end

def seed_str(klass)
  (0..klass::DEFAULT_SEED.length).to_a.pack("C#{klass::DEFAULT_SEED.length}")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
digest-murmurhash-1.1.1 spec/spec_helper.rb
digest-murmurhash-1.1.0 spec/spec_helper.rb