diff --git a/src/core/lib/utils/crypto.c b/src/core/lib/utils/crypto.c index a7ddaac..643fc50 100644 --- a/src/core/lib/utils/crypto.c +++ b/src/core/lib/utils/crypto.c @@ -18,6 +18,7 @@ along with this program. If not, see . #include +#include #include #include #include @@ -50,4 +51,14 @@ unsigned long long why2_sum_segment(char *input) //THE OUTPUT IS GOING TO GROW A ssize_t why2_random(void *dest, size_t size) { return getrandom(dest, size, GRND_NONBLOCK); +} + +void why2_seed_random(unsigned int seed) +{ + srand(seed); +} + +int why2_seeded_random() +{ + return rand(); } \ No newline at end of file