ref: 2dedb03719cacaf7d5978e3a6cebe423a04016e6
parent: 3a1bc4269d681e7d5a574e171c8cb9ab8ff2087a
parent: 4f040459ebe4824c0bedc504b6ae1115fdaa3986
author: Simon Howard <fraggle+github@gmail.com>
date: Tue Mar 1 15:58:11 EST 2016
Merge pull request #672 from jmtd/jmtd-revert-mrandom-seeding doom: Revert commit 59aad53.
--- a/src/doom/m_random.c
+++ b/src/doom/m_random.c
@@ -16,11 +16,6 @@
// Random number LUT.
//
-
-#include <time.h>
-
-#include "m_random.h"
-
//
// M_Random
// Returns a 0-255 number
@@ -66,13 +61,5 @@
void M_ClearRandom (void)
{
- prndindex = 0;
-
- // Seed the M_Random counter from the system time
-
- rndindex = time(NULL) & 0xff;
+ rndindex = prndindex = 0;
}
-
-
-
-