4.44 beta

This commit is contained in:
Igor Pavlov
2007-01-20 00:00:00 +00:00
committed by Kornel Lesiński
parent 804edc5756
commit d9666cf046
1331 changed files with 10535 additions and 13791 deletions

21
CPP/7zip/Crypto/Hash/RandGen.h Executable file
View File

@@ -0,0 +1,21 @@
// 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