Revision: 41961
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41961&view=rev
Author:   erikgreenwald
Date:     2011-01-05 21:04:39 +0000 (Wed, 05 Jan 2011)

Log Message:
-----------
Fake srand48 if drand48 is being faked.

Modified Paths:
--------------
    brlcad/trunk/include/common.h

Modified: brlcad/trunk/include/common.h
===================================================================
--- brlcad/trunk/include/common.h       2011-01-05 20:55:49 UTC (rev 41960)
+++ brlcad/trunk/include/common.h       2011-01-05 21:04:39 UTC (rev 41961)
@@ -54,6 +54,7 @@
 #  ifndef HAVE_DRAND48
 #    define drand48() ((double)rand() / (double)(RAND_MAX + 1))
 #    define HAVE_DRAND48 1
+#       define srand48(seed) (srand(seed))
 #  endif
 
 #endif  /* BRLCADBUILD & HAVE_CONFIG_H */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to