mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 20:11:35 -06:00
3.13
This commit is contained in:
16
Common/Random.cpp
Executable file
16
Common/Random.cpp
Executable file
@@ -0,0 +1,16 @@
|
||||
// Common/Random.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include <time.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(); }
|
||||
Reference in New Issue
Block a user