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.
2021-10-19 15:05:18 +02:00
|
|
|
#ifndef FORTUNA_GENERATOR_H
|
|
|
|
#define FORTUNA_GENERATOR_H
|
|
|
|
|
2021-10-24 22:04:14 +02:00
|
|
|
#include <string>
|
|
|
|
#include <cstring>
|
2021-10-19 15:05:18 +02:00
|
|
|
|
|
|
|
struct G_state;
|
|
|
|
|
|
|
|
/* initializes generator */
|
|
|
|
G_state *initialize_generator();
|
|
|
|
|
|
|
|
G_state generate_blocks(G_state G, int k_blocks);
|
|
|
|
|
|
|
|
/* returns output of 0 <= n <= 2^20 bytes */
|
|
|
|
std::string generate_random_data(G_state G, int n);
|
|
|
|
|
|
|
|
#endif//FORTUNA_GENERATOR_H
|