Hashes a key with the FNV_1a algorithm (Specifications)
Arguments: key - the key to be hashed
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(key_type), | intent(in) | :: | key |
pure function fnv_1a_hasher( key )
!! Version: Experimental
!!
!! Hashes a key with the FNV_1a algorithm
!! ([Specifications](../page/specs/stdlib_hashmaps.html#fnv_1a_hasher-calculates-a-hash-code-from-a-key))
!!
!! Arguments:
!! key - the key to be hashed
type(key_type), intent(in) :: key
integer(int_hash) :: fnv_1a_hasher
fnv_1a_hasher = fnv_1a_hash( key % value )
end function fnv_1a_hasher