aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-12-30 18:51:24 +0100
committerClifford Wolf <clifford@clifford.at>2014-12-30 18:51:24 +0100
commit06750987331a3d832ea83f2205c56612d3506332 (patch)
tree7f4593afb250d49c403f9f56e135918292686526 /kernel/rtlil.h
parentba43cf5807dadac970ff10afed4963d1ee329217 (diff)
downloadyosys-06750987331a3d832ea83f2205c56612d3506332.tar.gz
yosys-06750987331a3d832ea83f2205c56612d3506332.tar.bz2
yosys-06750987331a3d832ea83f2205c56612d3506332.zip
added hashlib::mkhash_init
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index bb9e85d93..739b701f8 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -463,7 +463,7 @@ struct RTLIL::Const
inline int size() const { return bits.size(); }
inline unsigned int hash() const {
- unsigned int h = 5381;
+ unsigned int h = mkhash_init;
for (auto b : bits)
mkhash(h, b);
return h;