module

Komihash

Constants

REFERENCE_VERSION = "5.10"

Version of the original C implementation referenced to implement this one.

VERSION = "0.2.1"

Version of this (Crystal) implementation.

Class methods

hash(data : Bytes, *, use_seed : UInt64 = 0_u64) : UInt64

KOMIHASH 64-bit hash function.

hash(data, *, use_seed : UInt64 = 0_u64) : UInt64

KOMIHASH 64-bit hash function.

rand(max)

Generates a random integer which is greater than or equal to 0 and less than max.

rand

Generates a random Float64 between 0 and 1.

Nested types