24 lines
521 B
C++
24 lines
521 B
C++
#include "fortuna.h"
|
|
|
|
#include <chrono>
|
|
|
|
int main() {
|
|
fmt::print("[*] doing evil stuff\n");
|
|
fortuna::Fortuna f;
|
|
try {
|
|
f.random_data(4); // number of bytes requested
|
|
using std::chrono_literals::operator""ms;
|
|
std::this_thread::sleep_for(1000ms);
|
|
f.random_data(4);
|
|
std::this_thread::sleep_for(120ms);
|
|
f.random_data(3);
|
|
f.random_data(3);
|
|
std::this_thread::sleep_for(10ms);
|
|
f.random_data(3);
|
|
} catch (std::exception& e) {
|
|
fmt::print("[!] exiting due to \"{}\"\n", e.what());
|
|
exit(0);
|
|
}
|
|
return 0;
|
|
}
|