From e59be45a88e762db237f5574a8b874b9ec504fba Mon Sep 17 00:00:00 2001 From: Shamus Hammons Date: Wed, 11 Apr 2012 17:25:55 +0000 Subject: [PATCH] Reverted win32 specific fix: wasn't necessary. :-P --- src/dsp.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/dsp.cpp b/src/dsp.cpp index 3ab0b62..7db98ae 100644 --- a/src/dsp.cpp +++ b/src/dsp.cpp @@ -29,12 +29,6 @@ //#include "memory.h" -#ifdef __GCCWIN32__ -// Apparently on win32, they left of the last little bits of these. So let's do this: -#define random rand -#define srandom srand -#endif - // Seems alignment in loads & stores was off... #define DSP_CORRECT_ALIGNMENT //#define DSP_CORRECT_ALIGNMENT_STORE @@ -1294,7 +1288,7 @@ void DSPInit(void) dsp_build_branch_condition_table(); DSPReset(); - srandom(time(NULL)); // For randomizing local RAM + srand(time(NULL)); // For randomizing local RAM } void DSPReset(void) @@ -1325,7 +1319,7 @@ void DSPReset(void) // Contents of local RAM are quasi-stable; we simulate this by randomizing RAM contents for(uint32 i=0; i<8192; i+=4) { - *((uint32 *)(&dsp_ram_8[i])) = random(); + *((uint32 *)(&dsp_ram_8[i])) = rand(); } } -- 2.37.2