Class CrossHash.Mist

java.lang.Object
squidpony.squidmath.CrossHash.Mist
All Implemented Interfaces:
Serializable
Enclosing class:
CrossHash

public static final class CrossHash.Mist
extends Object
implements Serializable
A whole cluster of Wisp-like hash functions that sacrifice a small degree of speed, but can be built with up to 128 bits of salt values that help to obscure what hashing function is actually being used. This class is similar to the older Storm variety, but is somewhat faster and has many more possible salt "states" when using the constructors that take two longs or a CharSequence. There isn't really any reason to use Storm, so Mist has now replaced Storm entirely. Code that used Storm should be able to just change any usage of "Storm" to "Mist", or can instead use CrossHash.Yolk or CrossHash.Curlup for higher quality and speed but smaller salt size.
The salt fields are not serialized, so it is important that the same salt will be given by the program when the same hash results are wanted for some inputs.
A group of 48 static, final, pre-initialized Mist members are present in this class, 24 with the name of a letter in the Greek alphabet (this uses the convention on Wikipedia, https://en.wikipedia.org/wiki/Greek_alphabet#Letters , where lambda is spelled with a 'b') and 24 with the same name followed by an underscore, such as alpha_. The whole group of 48 pre-initialized members are also present in a static array called predefined. These can be useful when, for example, you want to get multiple hashes of a single array or String as part of cuckoo hashing or similar techniques that need multiple hashes for the same inputs.
See Also:
Serialized Form