Changed all dword and UINT4 data types in disc_random.c to uint32_t.

This commit is contained in:
OBattler
2016-09-07 21:09:45 +02:00
parent 2982681247
commit 65d18aac26

View File

@@ -12,7 +12,7 @@
#include "disc_random.h" #include "disc_random.h"
dword preconst = 0x6ED9EBA1; uint32_t preconst = 0x6ED9EBA1;
static __inline__ uint32_t rotl32c (uint32_t x, uint32_t n) static __inline__ uint32_t rotl32c (uint32_t x, uint32_t n)
{ {
@@ -37,9 +37,9 @@ static __inline__ unsigned long long rdtsc(void)
return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 ); return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 );
} }
static UINT4 RDTSC(void) static uint32_t RDTSC(void)
{ {
return (UINT4) (rdtsc()); return (uint32_t) (rdtsc());
} }
static void disc_random_twist(uint32_t *val) static void disc_random_twist(uint32_t *val)
@@ -60,7 +60,7 @@ uint8_t disc_random_generate()
void disc_random_init() void disc_random_init()
{ {
dword seed = RDTSC(); uint32_t seed = RDTSC();
srand(seed); srand(seed);
return; return;
} }