Okay. Honestly, I don't see this. The closest thing I can come up with it that by using an ODD number the first bit will alternate between 0 and 1 where as if an EVEN number is used the first bit will always be 0 which would mean 128 bytes possibilities wouldn't come up.Originally posted by Melanie
+23 is just an ODD number. You can have any ODD number here - even ONE. If you use an even number, you will not have 256 random seedings, but 128. I'll leave you to figure why.
In reality though we're adding a number to a RANDOM number which could be odd or even and always saving just half the WORD anyway so all 256 possbilities for the seed number should come up over time.
This is the only thing I can think of, but it brings back another point.
If I continue to add a number to the eeprom eventually, as you mentioned, the bytes are going to add up to more than 256. Using 23 it would take no time at all to "fill up". How is this handled by the program?
<b>Read 0,B0
W0=W0+23
If W0>65535 then... </b> ?? What the heck happens. It can't be more than 65535. Does the system truncuate it to 65535 so I can still <b>Write 0,B0</b> ?
Or does the result cause a crash?
Thanks.
Bart
Bookmarks