mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 08:07:09 -06:00
18 lines
265 B
C++
Executable File
18 lines
265 B
C++
Executable File
// Common/Random.cpp
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include <time.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "Common/Random.h"
|
|
|
|
void CRandom::Init(unsigned int seed)
|
|
{ srand(seed); }
|
|
|
|
void CRandom::Init()
|
|
{ Init(time(NULL)); }
|
|
|
|
int CRandom::Generate() const
|
|
{ return rand(); }
|