Commit cc6834d4 by Alan Mishchenko

Unifying random number generation.

parent b4170615
...@@ -917,7 +917,7 @@ static inline void Cec5_ObjSimCi( Gia_Man_t * p, int iObj ) ...@@ -917,7 +917,7 @@ static inline void Cec5_ObjSimCi( Gia_Man_t * p, int iObj )
int w; int w;
word * pSim = Cec5_ObjSim( p, iObj ); word * pSim = Cec5_ObjSim( p, iObj );
for ( w = 0; w < p->nSimWords; w++ ) for ( w = 0; w < p->nSimWords; w++ )
pSim[w] = Gia_ManRandomW( 0 ); pSim[w] = Abc_RandomW( 0 );
pSim[0] <<= 1; pSim[0] <<= 1;
} }
static inline void Cec5_ObjClearSimCi( Gia_Man_t * p, int iObj ) static inline void Cec5_ObjClearSimCi( Gia_Man_t * p, int iObj )
...@@ -1902,7 +1902,7 @@ int Cec5_ManPerformSweeping( Gia_Man_t * p, Cec_ParFra_t * pPars, Gia_Man_t ** p ...@@ -1902,7 +1902,7 @@ int Cec5_ManPerformSweeping( Gia_Man_t * p, Cec_ParFra_t * pPars, Gia_Man_t ** p
assert( Gia_ObjId(p, pObj) == i+1 ); assert( Gia_ObjId(p, pObj) == i+1 );
// check if any output trivially fails under all-0 pattern // check if any output trivially fails under all-0 pattern
Gia_ManRandom( 1 ); Abc_Random( 1 );
Gia_ManSetPhase( p ); Gia_ManSetPhase( p );
if ( pPars->nLevelMax ) if ( pPars->nLevelMax )
Gia_ManLevelNum(p); Gia_ManLevelNum(p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment