Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarSecureRandom.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarSecureRandom.hpp')
-rw-r--r--source/core/StarSecureRandom.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/core/StarSecureRandom.hpp b/source/core/StarSecureRandom.hpp
new file mode 100644
index 0000000..e4110b0
--- /dev/null
+++ b/source/core/StarSecureRandom.hpp
@@ -0,0 +1,14 @@
+#ifndef STAR_SECURE_RANDOM_HPP
+#define STAR_SECURE_RANDOM_HPP
+
+#include "StarByteArray.hpp"
+
+namespace Star {
+
+// Generate cryptographically secure random numbers for usage in password salts
+// and such using OS facilities
+ByteArray secureRandomBytes(size_t size);
+
+}
+
+#endif