From 65b081dc309da104ad12818cff4ae7185ced8ce3 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 27 Oct 2021 18:53:53 +0200 Subject: [PATCH] chore: edit printf formatting and comments [skip ci] --- generator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generator.cpp b/generator.cpp index 3ee3c3b..5393f70 100644 --- a/generator.cpp +++ b/generator.cpp @@ -20,6 +20,7 @@ G_state *initialize_generator(){ string do_crypto(long k, unsigned __int128 ctr){ /* this function calls the block cipher + * returns a string of k*(16 bytes); do whatever atm */ k = 0; ctr = 0; @@ -42,10 +43,10 @@ tuple generate_random_data(G_state G, uint n){ string r = ""; if (n < 0){ /* this should not be possible */ - printf("[*] error: n cannot be < 0"); + printf("[*] error: n cannot be < 0\n"); throw invalid_argument("n cannot be < 0"); } else if (n > pow(2,20)){ - printf("[*] error: n cannot be > 2^20"); + printf("[*] error: n cannot be > 2^20\n"); throw invalid_argument("n cannot be > 2^20"); } /* do magic to compute r