Converted to new logstream debugging facility. This allows release
builds with no messages at all (and no performance impact) by using the -DFG_NDEBUG flag.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#include <stdlib.h> /* for random(), srandom() */
|
||||
#include <time.h> /* for time() to seed srandom() */
|
||||
|
||||
#include <Debug/fg_debug.h>
|
||||
/* #include <Debug/fg_debug.h> */
|
||||
|
||||
#include "fg_random.h"
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
/* Seed the random number generater with time() so we don't see the
|
||||
* same sequence every time */
|
||||
void fg_srandom(void) {
|
||||
fgPrintf( FG_MATH, FG_INFO, "Seeding random number generater\n");
|
||||
/* fgPrintf( FG_MATH, FG_INFO, "Seeding random number generater\n"); */
|
||||
|
||||
#ifdef HAVE_RAND
|
||||
srand(time(NULL));
|
||||
@@ -75,9 +75,14 @@ double fg_random(void) {
|
||||
|
||||
|
||||
/* $Log$
|
||||
/* Revision 1.8 1998/04/25 22:06:23 curt
|
||||
/* Edited cvs log messages in source files ... bad bad bad!
|
||||
/* Revision 1.9 1998/11/06 21:17:26 curt
|
||||
/* Converted to new logstream debugging facility. This allows release
|
||||
/* builds with no messages at all (and no performance impact) by using
|
||||
/* the -DFG_NDEBUG flag.
|
||||
/*
|
||||
* Revision 1.8 1998/04/25 22:06:23 curt
|
||||
* Edited cvs log messages in source files ... bad bad bad!
|
||||
*
|
||||
* Revision 1.7 1998/04/24 00:43:13 curt
|
||||
* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user