Mercurial > hg > easyhg
diff src/common.h @ 443:459b140032d4
Introduce random key generator
author | Chris Cannam |
---|---|
date | Tue, 28 Jun 2011 14:33:50 +0100 |
parents | 005633eed862 |
children | 66ec8b2ee946 |
line wrap: on
line diff
--- a/src/common.h Tue Jun 28 14:33:44 2011 +0100 +++ b/src/common.h Tue Jun 28 14:33:50 2011 +0100 @@ -20,11 +20,6 @@ #include <QString> -#define MY_ICON_SIZE 32 -//!!!: -#define REPOMENU_TITLE "Repository actions" -#define WORKFOLDERMENU_TITLE "Workfolder actions" - extern QString findInPath(QString name, QString installPath, bool executable); extern QString getSystem(); @@ -64,6 +59,11 @@ QString xmlEncode(QString); QString uniDecode(QString); + +/** + * Generate a 16-byte random key using urandom or equivalent + */ +QByteArray randomKey(); #endif //COMMON_H