Mail Archives: djgpp/1997/04/24/16:00:27
Eli Zaretskii wrote:
> You are using real-mode tricks in a protected-mode program, which is
> why your program crashes. You can't access absolute addresses in that
> way, because protected mode doesn't allow that.
Besides, there's an easier way to seed the random number generator using
the time, and it's ANSI C:
#include <stdlib.h>
#include <time.h>
srand(time(0));
--
Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"The future / is right there."
/ Bill Moyers
- Raw text -