FNV.Params
SourceSummary↑
all_params() | |
params_for(desired_bit_length) | Returns the prime and offset base for the given bit length (must be one of [32, 64, 128, 256, 512, 1024]). For invalid values it returns an empty dict/list |
supported_bit_lengths() |
Functions
Returns the prime and offset base for the given bit length (must be one of [32, 64, 128, 256, 512, 1024]). For invalid values it returns an empty dict/list.
Examples
FNV.Params.bits(64)
#=> [prime: 1099511628211, offset_base: 14695981039346656037]
FNV.Params.bits(99)
#=> []