From 4d0ae6422674a2a752c5c6b60ca5ffe908a2278f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 3 Jan 2012 23:37:48 -0700 Subject: Random numbers are better, and win32 compatible. --- src/functionrandom.cpp | 4 ++++ src/main.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/functionrandom.cpp b/src/functionrandom.cpp index ec302b3..5599310 100644 --- a/src/functionrandom.cpp +++ b/src/functionrandom.cpp @@ -4,6 +4,10 @@ #include +#ifdef WIN32 +#define random() rand() +#endif + FunctionRandom::FunctionRandom() { } diff --git a/src/main.cpp b/src/main.cpp index 1f532d9..5b91861 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,6 +6,10 @@ #include #include +#ifdef WIN32 +#define srandom( x ) srand( x ) +#endif + #include using namespace Bu; -- cgit v1.2.3