On Apr 9, 2006, at 2:58 AM, Stef Mientki wrote: > "The prime polynom is 0xA6A6A6A6 (Yes this is a prime polynom! > I went through a hell to find it)" > > Is this correct ? At least I can divide it by 2, so what I remember > from prime numbers, this is NOT a prime number. > Bit masks for the feedback terms that implement a prime polynomial and "prime numbers" are entirely different things, I think. For instance, the "B4" mask used in the tested 8-bit PRNG surely isn't prime either, and the D7D7D7 use in the generator you're happy with is 14145495; clearly divisible by 3 and 5... I couldn't say whether it's actually a valid set of feedback terms to implement a max-length 32 bit sequence! BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist