forked from ak-fortuna/fortuna
main: use moar_random_data()
This commit is contained in:
parent
2c215967cd
commit
ffca8a8d37
3
main.cpp
3
main.cpp
|
@ -83,8 +83,11 @@ int main() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
using std::chrono_literals::operator""ms;
|
using std::chrono_literals::operator""ms;
|
||||||
|
// this may fail, p0 probaby has not collected enough entropy by now
|
||||||
chance::f->random_data(4); // number of bytes requested
|
chance::f->random_data(4); // number of bytes requested
|
||||||
|
|
||||||
std::this_thread::sleep_for(7777ms); // enough time for p0 == 64
|
std::this_thread::sleep_for(7777ms); // enough time for p0 == 64
|
||||||
|
chance::f->moar_random_data(1000000000000); // 1000 GB --> for dieharder
|
||||||
|
|
||||||
if (chance::AUTOSTOP) {
|
if (chance::AUTOSTOP) {
|
||||||
auto err{chance::f->stop_running()};
|
auto err{chance::f->stop_running()};
|
||||||
|
|
Loading…
Reference in New Issue