There are several ways to implement a PRNG using a LFSR. I found this one to be sensible and easy to follow. I think that being clear about the polynomials you are implementing would be helpful, either in comments in the code or on the web page. Thank you for this.