Improved setundef random number generator

This commit is contained in:
Clifford Wolf 2014-01-18 02:56:36 +01:00
parent 091d9abc3e
commit 839af272ad
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ static RTLIL::State next_bit()
next_bit_state ^= next_bit_state << 5;
log_assert(next_bit_state != 0);
return ((next_bit_state >> (next_bit_state & 15)) & 1) ? RTLIL::State::S0 : RTLIL::State::S1;
return ((next_bit_state >> (next_bit_state & 15)) & 16) ? RTLIL::State::S0 : RTLIL::State::S1;
}
struct SetundefWorker