mirror of
https://github.com/minetest/irrlicht.git
synced 2025-09-18 14:20:43 +02:00
Remove more dead code (#108)
This commit is contained in:
@@ -44,37 +44,6 @@ namespace os
|
||||
static ILogger* Logger;
|
||||
};
|
||||
|
||||
|
||||
// congruential pseudo-random generator
|
||||
// numbers identical to std::minstd_rand0
|
||||
// period is somewhere around m-1
|
||||
class Randomizer
|
||||
{
|
||||
public:
|
||||
|
||||
//! resets the randomizer
|
||||
static void reset(s32 value=0x0f0f0f0f);
|
||||
|
||||
//! generates a pseudo random number in the range 0..randMax()
|
||||
static s32 rand();
|
||||
|
||||
//! get maximum number generated by rand()
|
||||
static s32 randMax();
|
||||
|
||||
private:
|
||||
|
||||
static s32 seed;
|
||||
|
||||
static const s32 m = 2147483647; // a Mersenne prime (2^31-1)
|
||||
static const s32 a = 16807; // another spectral success story
|
||||
static const s32 q = m/a;
|
||||
static const s32 r = m%a; // again less than q
|
||||
static const s32 rMax = m-2;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user