Added pronounceable password generator
Improved RNG seeding on Windows Updated AES implementation Removed SHA1 implementation, replaced by QCryptographicHash Replaced ARC4 implementation by the one from KeePass 1.11 Some cleanup git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@216 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -20,11 +20,23 @@
|
||||
#ifndef RANDOM_H_
|
||||
#define RANDOM_H_
|
||||
|
||||
#include <QObject>
|
||||
#ifndef quint8
|
||||
typedef unsigned char quint8;
|
||||
#endif
|
||||
|
||||
namespace Random {
|
||||
void getEntropy(quint8* buffer, int length);
|
||||
void initStdRand();
|
||||
};
|
||||
#ifndef quint32
|
||||
typedef unsigned int quint32;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void getEntropy(quint8* buffer, int length);
|
||||
quint32 randint(quint32 n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user