Integrated new event manager with subsystem initializations.
This commit is contained in:
parent
abbcf855c4
commit
ad2bd3db0f
@ -24,6 +24,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h> /* for random(), srandom() */
|
#include <stdlib.h> /* for random(), srandom() */
|
||||||
#include <time.h> /* for time() to seed srandom() */
|
#include <time.h> /* for time() to seed srandom() */
|
||||||
|
|
||||||
@ -40,6 +41,8 @@
|
|||||||
/* Seed the random number generater with time() so we don't see the
|
/* Seed the random number generater with time() so we don't see the
|
||||||
* same sequence every time */
|
* same sequence every time */
|
||||||
void fg_srandom(void) {
|
void fg_srandom(void) {
|
||||||
|
printf("Seeding random number generater\n");
|
||||||
|
|
||||||
#ifdef USE_RAND
|
#ifdef USE_RAND
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
#else
|
#else
|
||||||
@ -59,9 +62,12 @@ double fg_random(void) {
|
|||||||
|
|
||||||
|
|
||||||
/* $Log$
|
/* $Log$
|
||||||
/* Revision 1.1 1997/07/30 16:04:09 curt
|
/* Revision 1.2 1997/12/30 20:47:48 curt
|
||||||
/* Moved random routines from Utils/ to Math/
|
/* Integrated new event manager with subsystem initializations.
|
||||||
/*
|
/*
|
||||||
|
* Revision 1.1 1997/07/30 16:04:09 curt
|
||||||
|
* Moved random routines from Utils/ to Math/
|
||||||
|
*
|
||||||
* Revision 1.1 1997/07/19 22:31:57 curt
|
* Revision 1.1 1997/07/19 22:31:57 curt
|
||||||
* Initial revision.
|
* Initial revision.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user