From 0d2e078eebb2827e0ed49e55dd10df406c4e3af1 Mon Sep 17 00:00:00 2001 From: dan miller Date: Fri, 19 Oct 2007 05:22:50 +0000 Subject: trying to fix my screwup part deux --- "libraries/ode-0.9\\/OPCODE/Ice/IceRandom.cpp" | 35 -------------------------- 1 file changed, 35 deletions(-) delete mode 100755 "libraries/ode-0.9\\/OPCODE/Ice/IceRandom.cpp" (limited to 'libraries/ode-0.9\/OPCODE/Ice/IceRandom.cpp') diff --git "a/libraries/ode-0.9\\/OPCODE/Ice/IceRandom.cpp" "b/libraries/ode-0.9\\/OPCODE/Ice/IceRandom.cpp" deleted file mode 100755 index cc63a04..0000000 --- "a/libraries/ode-0.9\\/OPCODE/Ice/IceRandom.cpp" +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -/** - * Contains code for random generators. - * \file IceRandom.cpp - * \author Pierre Terdiman - * \date August, 9, 2001 - */ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Precompiled Header -#include "Stdafx.h" - -using namespace IceCore; - -void IceCore:: SRand(udword seed) -{ - srand(seed); -} - -udword IceCore::Rand() -{ - return rand(); -} - - -static BasicRandom gRandomGenerator(42); - -udword IceCore::GetRandomIndex(udword max_index) -{ - // We don't use rand() since it's limited to RAND_MAX - udword Index = gRandomGenerator.Randomize(); - return Index % max_index; -} - -- cgit v1.1