#include <more/math/hash.h>
The implemented values for Width at the moment are 96 and 192, other values will be eigther truncated or non-truncated versions of an implementation with more bits. Width > 192 gives compile-time error. I believe this hash function is rather good, but DON'T USE IT FOR SECURITY without checking it, I take no responsibility! It is used by the lang module to create unique file names.
|
|
|
|
|
|
|
Trivial constructor.
|
|
Construct a hash with the given start value (seed).
|
|
Initializes the hash from a name written by strncpy_c_name. The hash will compare equal to the original, but if this is a truncated hash type (cf the Width template argument), the hashes will develop differtly on further insertions. |
|
Chop an arithmetic value into the hash.
|
|
Chop a sequence of arithmetic values into the hash. This is equivalent to inserting each value separately in the same order. |
|
Writes c_name_strlen alphanumeric ascii characters to s, starting with an alphabetic. The result is not 0-terminated. |
|
|
|
|
|
|
|
|
|
|
|
|