|
Electroneum
|
Go to the source code of this file.
Functions | |
| uint32_t | hashword (const uint32_t *k, size_t length, uint32_t initval) |
| uint32_t | hashlittle (const void *k, size_t length, uint32_t initval) |
| void | hash_set_raninit (uint32_t v) |
This file contains header definitions for the hash functions we use. The hash functions are public domain (see lookup3.c).
Definition in file lookup3.h.
| void hash_set_raninit | ( | uint32_t | v | ) |
Set the randomisation initial value, set this before threads start, and before hashing stuff (because it changes subsequent results).
| v | value |
Hash key data.
| k | the key, array of uint8_t |
| length | the length of the key, in uint8_ts |
| initval | the previous hash, or an arbitrary value |