Starbound/source/core/StarSecureRandom_unix.cpp
2025-03-21 22:23:30 +11:00

10 lines
191 B
C++

#include "StarSecureRandom.hpp"
#include "StarFile.hpp"
namespace Star {
ByteArray secureRandomBytes(size_t size) {
return File::open("/dev/urandom", IOMode::Read)->readBytes(size);
}
}