blob: 4ddb33722a63d28421cb0413537a00cb5d649f9f (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "StarSecureRandom.hpp"
#include "StarFile.hpp"
namespace Star {
ByteArray secureRandomBytes(size_t size) {
return File::open("/dev/urandom", IOMode::Read)->readBytes(size);
}
}
|