I am looking for a fast PRNG for the MSP430x2x01 series, low power 16-bit microcontrollers.
The PRNG doesn't need to be especially random, just good enough. It will be used to stagger the startup of large devices (refrigerators, heaters, A/C, etc.) when first turned on, to reduce inrush current. The PRNG will be seeded with a guaranteed random number from a preprogrammed EEPROM. (It needs to be random every time, so I will be writing the seed back.)
I've had a look at LCGs but I'm not sure how to implement one in assembly.
Any help appreciated!
The PRNG doesn't need to be especially random, just good enough. It will be used to stagger the startup of large devices (refrigerators, heaters, A/C, etc.) when first turned on, to reduce inrush current. The PRNG will be seeded with a guaranteed random number from a preprogrammed EEPROM. (It needs to be random every time, so I will be writing the seed back.)
I've had a look at LCGs but I'm not sure how to implement one in assembly.
Any help appreciated!