Hello,
Does anyone know of a relatively simple algorithm for generating a random seed without using the time function?
I'm interfacing C with assembly code, and the m68k-coff-gcc cross-compiler on Solaris is not recognizing the time() function, even though I included <time.h> and the -lc flag. It doesn't have any trouble recognizing rand() or srand(). It just begins to fail when time() is called.
This is my only option for compiling, so if anyone has any ideas for a simple function that sets a random seed without calling time(), that would be appreciated!
This is only for a game, so I don't need anything fancy.
Thanks!