Latest attempt at randomization.
Upon further review, I found elapsed time won't work for us either. That's because it's not really a timer at all per say, and so always gives the same seed. In light of that I've completely scrapped the old random system written by Roel.
As is usually recommended for random generation OpenBOR now uses the C <time.h> library in order to gain access to system time. In turn, system time is used as a random seed, ensuring a strong random generation.
The catch: As I said before, we can't always be sure there is a system clock available. That's why I didn't do this in the first place. PCs all have system time of course and so does the Dreamcast. I'm just not sure about the other platforms, so they'll need testing.
DOWNLOAD
Upon further review, I found elapsed time won't work for us either. That's because it's not really a timer at all per say, and so always gives the same seed. In light of that I've completely scrapped the old random system written by Roel.
As is usually recommended for random generation OpenBOR now uses the C <time.h> library in order to gain access to system time. In turn, system time is used as a random seed, ensuring a strong random generation.
The catch: As I said before, we can't always be sure there is a system clock available. That's why I didn't do this in the first place. PCs all have system time of course and so does the Dreamcast. I'm just not sure about the other platforms, so they'll need testing.
DOWNLOAD