File diff r8141:42cd6a34e115 → r8142:8414f11ec81b
src/core/random_func.cpp
Show inline comments
 
/* $Id$ */
 

	
 
/** @file random_func.cpp */
 

	
 
#include "../stdafx.h"
 
#include "../variables.h"
 
#include "random_func.hpp"
 
#include "bitmath_func.hpp"
 

	
 
uint32 _random_seeds[2][2];
 

	
 
uint32 InteractiveRandom()
 
{
 
	const uint32 s = _random_seeds[1][0];
 
	const uint32 t = _random_seeds[1][1];
 

	
 
	_random_seeds[1][0] = s + ROR(t ^ 0x1234567F, 7) + 1;