summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-12-29 00:12:36 +0100
committerClifford Wolf <clifford@clifford.at>2014-12-29 00:12:36 +0100
commita2226e530791ec9dea45cd905f812de28d2c1c06 (patch)
treedc074d315113278178c14bcbec5c19a96ae372c5 /kernel/rtlil.h
parentdede5353b10c1d8fb887fbfd3a46cb1fc0413082 (diff)
Added mkhash_xorshift()
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index f759a014..5bca060f 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -712,8 +712,9 @@ struct RTLIL::Monitor
unsigned int hash() const { return hashidx_; }
Monitor() {
- static unsigned int hashidx_count = 0;
- hashidx_ = hashidx_count++;
+ static unsigned int hashidx_count = 123456789;
+ hashidx_count = mkhash_xorshift(hashidx_count);
+ hashidx_ = hashidx_count;
}
virtual ~Monitor() { }