This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
fortuna/main.cpp
surtur 3e4fb10414
All checks were successful
continuous-integration/drone/push Build is passing
fortuna: add generator service
2022-01-03 07:49:53 +01:00

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;
}