diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:13:27 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:13:27 +0200 |
commit | c47ee9af642d5ad698871c7ce31e5ffae6a51d98 (patch) | |
tree | 7dc371cd8bf5e7850e0a1a0f077ed1a8cb46956a /crawl-ref/source/hash.h | |
parent | 4ee4bd8e3265b59996e467dcd555a7bccad1f9ee (diff) | |
download | crawl-ref-c47ee9af642d5ad698871c7ce31e5ffae6a51d98.tar.gz crawl-ref-c47ee9af642d5ad698871c7ce31e5ffae6a51d98.zip |
Rename rng.cc to hash.cc
As that's all that's left.
Diffstat (limited to 'crawl-ref/source/hash.h')
-rw-r--r-- | crawl-ref/source/hash.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/hash.h b/crawl-ref/source/hash.h index 412e413784..56253e29b3 100644 --- a/crawl-ref/source/hash.h +++ b/crawl-ref/source/hash.h @@ -1,7 +1,7 @@ #ifndef HASH_H #define HASH_H -static uint64_t hash3(uint64_t x, uint64_t y, uint64_t z) +static inline uint64_t hash3(uint64_t x, uint64_t y, uint64_t z) { // Some compilers choke on big unsigneds, need to give them in hex. uint64_t hash=0xcbf29ce484222325ULL; // 14695981039346656037 @@ -16,4 +16,7 @@ static uint64_t hash3(uint64_t x, uint64_t y, uint64_t z) return x; } +uint32_t hash32(const void *data, int len) PURE; +unsigned int hash_rand(int x, uint32_t seed, uint32_t id = 0); + #endif |