mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-20 12:53:39 +00:00
Some cleanups
This commit is contained in:
parent
8773fd5897
commit
2ad131764f
3 changed files with 20 additions and 11 deletions
|
@ -56,12 +56,14 @@ Tcl_Interp *yosys_tcl_interp = NULL;
|
|||
#endif
|
||||
|
||||
bool memhasher_active = false;
|
||||
uint32_t memhasher_rng;
|
||||
uint32_t memhasher_rng = 123456;
|
||||
std::vector<void*> memhasher_store;
|
||||
|
||||
void memhasher_on()
|
||||
{
|
||||
#ifdef __linux__
|
||||
memhasher_rng += time(NULL) << 16 ^ getpid();
|
||||
#endif
|
||||
memhasher_store.resize(0x10000);
|
||||
memhasher_active = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue