Pseudo random number generators

Just in case data0 was changed by another thread? :stuck_out_tongue: Sometimes people write funny code :slight_smile:

Mike

Just in case data0 was changed by another thread? :stuck_out_tongue: Sometimes people write funny code :slight_smile:

Mike

If you’re thinking the two data elements should be a ring-buffer: you’re right. And if you’re thinking those signed shifts should be unsigned: you’re right. 3 bugs in 3 lines of code: go me! Fixed.

If you’re thinking the two data elements should be a ring-buffer: you’re right. And if you’re thinking those signed shifts should be unsigned: you’re right. 3 bugs in 3 lines of code: go me! Fixed.