I need to generate some random numbers in C for testing and debugging the system. The system is a custom hardware (SoC) with a limited set of functions so I can only use basic m
You may want to look for Mersenne Twister. There are lots of algorithms of higher quality. A good article with an overview you find here:
http://en.wikipedia.org/wiki/Pseudorandom_number_generator