3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 12:53:39 +00:00

Some cleanups

This commit is contained in:
Clifford Wolf 2014-12-28 21:43:14 +01:00
parent 8773fd5897
commit 2ad131764f
3 changed files with 20 additions and 11 deletions

View file

@ -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;
}