1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Fixed 'random' number generator.

This commit is contained in:
Thomas Harte 2017-03-19 18:54:35 -04:00
parent 4bb70e7d31
commit 7d8d1c7828

View File

@ -36,7 +36,7 @@ class CartridgePitfall2: public Cartridge<CartridgePitfall2> {
}
random_number_generator_ = (uint8_t)(
(random_number_generator_ << 1) |
~(( (random_number_generator_ >> 7) ^
(~( (random_number_generator_ >> 7) ^
(random_number_generator_ >> 5) ^
(random_number_generator_ >> 4) ^
(random_number_generator_ >> 3)