mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Added mkhash_xorshift()
This commit is contained in:
parent
dede5353b1
commit
a2226e5307
4 changed files with 38 additions and 13 deletions
|
@ -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() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue