forked from ak-fortuna/fortuna
add fortuna class
This commit is contained in:
parent
40ae062657
commit
ea11801789
|
@ -75,4 +75,4 @@ set(CMAKE_CXX_STANDARD 20)
|
|||
endif(NOT CMAKE_EXE_LINKER_FLAGS MATCHES "-fuse-ld=lld")
|
||||
endif()
|
||||
|
||||
add_executable(fortuna main.cpp generator.cpp generator.h)
|
||||
add_executable(fortuna main.cpp generator.cpp generator.h fortuna.cpp fortuna.h)
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
#include "fortuna.h"
|
||||
#include "generator.h"
|
||||
|
||||
#ifndef FORTUNA_FORTUNA_CPP
|
||||
#define FORTUNA_FORTUNA_CPP
|
||||
|
||||
namespace fortuna {
|
||||
Fortuna::Fortuna(){
|
||||
generator::Generator g{};
|
||||
g.initialize_generator();
|
||||
}
|
||||
Fortuna::~Fortuna() = default;
|
||||
|
||||
auto Fortuna::random_data(unsigned int n_blocks) -> void {
|
||||
// TODO(me)
|
||||
// will one day return random data to the user
|
||||
}
|
||||
|
||||
} // namespace fortuna
|
||||
|
||||
#endif//FORTUNA_FORTUNA_CPP
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef FORTUNA_FORTUNA_H
|
||||
#define FORTUNA_FORTUNA_H
|
||||
|
||||
#include "generator.h"
|
||||
|
||||
namespace fortuna {
|
||||
|
||||
class Fortuna {
|
||||
public:
|
||||
Fortuna();
|
||||
~Fortuna();
|
||||
auto random_data(unsigned int) -> void;
|
||||
private:
|
||||
generator::Generator gen;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif//FORTUNA_FORTUNA_H
|
Loading…
Reference in New Issue