From 25113dc0b3c97178c85ac02c082164a6d36d3c1e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 10 Jan 2025 17:54:27 +0100 Subject: [PATCH] declared seeded-rand fns in crypto --- include/crypto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/crypto.h b/include/crypto.h index 737dcb1..6c7cd95 100644 --- a/include/crypto.h +++ b/include/crypto.h @@ -36,6 +36,8 @@ extern "C" { //FUNCTIONS unsigned long long why2_sum_segment(char *input); //CALCULATE SUM++ FOR input; USED FOR PADDING SEED ssize_t why2_random(void *dest, size_t size); //WRITE CRYPTO-SECURE RANDOM NUMBER INTO dest +void why2_seed_random(unsigned int seed); //SEED why2_seeded_random OUTPUT +int why2_seeded_random(); //GENERATE RANDOM NUMBER BASED ON SEED PASSED IN why2_seed_random #ifdef __cplusplus }