seeded_water_hasher Function

public pure function seeded_water_hasher(key)

Hashes a key with the waterhash algorithm (Specifications)

Arguments: key - the key to be hashed

Arguments

TypeIntentOptionalAttributesName
type(key_type), intent(in) :: key

Return Value integer(kind=int_hash)


Contents

Source Code


Source Code

    pure function seeded_water_hasher( key )
!! Version: Experimental
!!
!! Hashes a key with the waterhash algorithm
!! ([Specifications](../page/specs/stdlib_hashmaps.html#seeded_water_hasher-calculates-a-hash-code-from-a-key))
!!
!! Arguments:
!!     key  - the key to be hashed
        type(key_type), intent(in)  :: key
        integer(int_hash)           :: seeded_water_hasher

        seeded_water_hasher = water_hash( key % value, &
            int( z'DEADBEEF1EADBEEF', int64 ) )

    end function seeded_water_hasher