2015-04-22 19:06:29 +02:00
|
|
|
#ifndef OPENSSLRANDOMDEVICE_H
|
|
|
|
#define OPENSSLRANDOMDEVICE_H
|
|
|
|
|
2016-08-29 15:42:07 +02:00
|
|
|
#include "../global.h"
|
|
|
|
|
2015-04-22 19:06:29 +02:00
|
|
|
#include <c++utilities/conversion/types.h>
|
|
|
|
|
|
|
|
namespace Util {
|
|
|
|
|
2017-05-01 03:25:30 +02:00
|
|
|
class PASSWORD_FILE_EXPORT OpenSslRandomDevice {
|
2015-04-22 19:06:29 +02:00
|
|
|
public:
|
|
|
|
OpenSslRandomDevice();
|
|
|
|
uint32 operator()() const;
|
|
|
|
bool status() const;
|
|
|
|
};
|
2018-03-20 20:11:31 +01:00
|
|
|
} // namespace Util
|
2015-04-22 19:06:29 +02:00
|
|
|
|
|
|
|
#endif // OPENSSLRANDOMDEVICE_H
|