module Komihash
Defined in:
komihash.crConstant Summary
-
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 Method Summary
-
.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
0and less than max. -
.rand : Float64
Generates a random Float64 between 0 and 1.
Class Method Detail
def self.rand(max)
#
Generates a random integer which is greater than or equal to 0 and less than max.