fnv_1_hasher Function

public pure function fnv_1_hasher(key)

Hashes a key with the FNV_1 algorithm Arguments: key - the key to be hashed

Arguments

Type IntentOptional Attributes Name
type(key_type), intent(in) :: key

Return Value integer(kind=int_hash)


Source Code

    pure function fnv_1_hasher( key )
!! Version: Experimental
!!
!! Hashes a key with the FNV_1 algorithm
!! Arguments:
!!     key  - the key to be hashed
        type(key_type), intent(in)    :: key
        integer(int_hash)             :: fnv_1_hasher

        fnv_1_hasher = fnv_1_hash( key % value )

    end function fnv_1_hasher