![]() That did work (I'm guessing it's correct because it stopped). I looked at the wikipedia page, and changed the rightmost term from + 1 to + lfsr per the wiki. I did the polynomial in your comment, but it did not work (seemed to loop infinitely). This way seems to assume the lsb left and the msb right, so that we shift everything onto the msb's positon and xor it. This is the third part of a tutorial (1, 2, self) describing the creation of an animated Pseudo Random Number Generator model as a Fibonacci type Linear. I want the polynomial in my comment, which seems to be the one pointed out. ![]() Lfsr = (lfsr > 1) | (bit > 1) | (bit > 1) | (bit << 24). Linear Feedback Shift Registers (LFSR) play a vital role to provide cybersecurity for the data communication system. I have used uint32_t for all my data types and lfsr is set to start_state when the function is called. I want to implement a Linear-feedback shift register for the following polynomial x^24 + x^23 + x^22 + x^20 + x^19 + x^18 + x^17 + x^16 + x^15 + x^13 + x^12 + x^8 + x^7 + x^6 + 1, relying on what can be found here with the associated C code:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |