View Source GrowthBook.Hash (GrowthBook v0.2.0)

Link to this section Summary

Functions

Hashes a string to a float between 0.0 and 1.0, using the Fowler-Noll-Vo (fnv32a) algorithm.

Link to this section Types

Specs

seed() :: String.t() | integer()

Specs

value() :: String.t() | integer()

Specs

version() :: 1 | 2

Link to this section Functions

Link to this function

hash(seed, value, version)

View Source

Specs

hash(seed(), value(), version()) :: float() | nil

Hashes a string to a float between 0.0 and 1.0, using the Fowler-Noll-Vo (fnv32a) algorithm.