|
|
/* $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;
|