mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 04:07:08 -06:00
22 lines
329 B
C++
Executable File
22 lines
329 B
C++
Executable File
// RandGen.h
|
|
|
|
#ifndef __RANDGEN_H
|
|
#define __RANDGEN_H
|
|
|
|
#include "Sha1.h"
|
|
|
|
class CRandomGenerator
|
|
{
|
|
Byte _buff[NCrypto::NSha1::kDigestSize];
|
|
bool _needInit;
|
|
|
|
void Init();
|
|
public:
|
|
CRandomGenerator(): _needInit(true) {};
|
|
void Generate(Byte *data, unsigned int size);
|
|
};
|
|
|
|
extern CRandomGenerator g_RandomGenerator;
|
|
|
|
#endif
|