Then use a 256 bit LFSR. It's still easier than using a radioactive source. 2^(256)-1 steps before it repeats. -- Martin K David VanHorn wrote: > On 10/5/07, Martin Klingensmith wrote: > >> There are LFSR routines for PICs out there as well. >> > > Yeah, but they do repeat, eventually, and if you know the length, and > seed, then you can work out what's next pretty quickly. I have a 19 > bit implementation for the AVR, which I shift every time through the > main loop, and when I use it, I grab a few bits from here, a few from > there, making it harder to attack that way. > > But radioactive decay isn't that hard to get, and if someone can show > how to un-randomize that, they have a Nobel waiting. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist