module Komihash

Defined in:

komihash.cr

Constant 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

Class Method Detail

def self.hash(data : Bytes, *, use_seed : UInt64 = 0_u64) : UInt64 #

KOMIHASH 64-bit hash function.


[View source]
def self.hash(data, *, use_seed : UInt64 = 0_u64) : UInt64 #

KOMIHASH 64-bit hash function.


[View source]
def self.rand(max) #

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


[View source]
def self.rand : Float64 #

Generates a random Float64 between 0 and 1.


[View source]