mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 23:14:54 -06:00
9.06 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
829409452d
commit
c99f3ebdd6
@@ -2,16 +2,25 @@
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#include "Random.h"
|
||||
|
||||
void CRandom::Init(unsigned int seed)
|
||||
{ srand(seed); }
|
||||
void CRandom::Init(unsigned int seed) { srand(seed); }
|
||||
|
||||
void CRandom::Init()
|
||||
{ Init((unsigned int)time(NULL)); }
|
||||
{
|
||||
Init((unsigned int)
|
||||
#ifdef _WIN32
|
||||
GetTickCount()
|
||||
#else
|
||||
time(NULL)
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
int CRandom::Generate() const
|
||||
{ return rand(); }
|
||||
int CRandom::Generate() const { return rand(); }
|
||||
|
||||
Reference in New Issue
Block a user