Files
easy7zip/CPP/Common/Random.cpp
Igor Pavlov fd8b1d78b4 4.48 beta
2016-05-28 00:15:52 +01:00

18 lines
272 B
C++
Executable File

// Common/Random.cpp
#include "StdAfx.h"
#include <time.h>
#include <stdlib.h>
#include "Random.h"
void CRandom::Init(unsigned int seed)
{ srand(seed); }
void CRandom::Init()
{ Init((unsigned int)time(NULL)); }
int CRandom::Generate() const
{ return rand(); }