mirror of https://github.com/YosysHQ/yosys.git
hashlib: fudge always
This commit is contained in:
parent
582259f770
commit
209ab6fb72
|
@ -99,8 +99,7 @@ class Hasher {
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
static uint32_t mkhash(uint32_t a, uint32_t b) {
|
static uint32_t mkhash(uint32_t a, uint32_t b) {
|
||||||
uint32_t hash = ((a << 5) + a) ^ b;
|
uint32_t hash = ((a << 5) + a) ^ b;
|
||||||
if (fudge)
|
hash = mkhash_xorshift(fudge ^ hash);
|
||||||
hash = fudge ^ mkhash_xorshift(hash);
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue