v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
10
source/core/StarSecureRandom_unix.cpp
Normal file
10
source/core/StarSecureRandom_unix.cpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include "StarSecureRandom.hpp"
|
||||
#include "StarFile.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
ByteArray secureRandomBytes(size_t size) {
|
||||
return File::open("/dev/urandom", IOMode::Read)->readBytes(size);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue