From 636b07de93027901705d4d7c2a263add882c2ce6 Mon Sep 17 00:00:00 2001 From: Xiao Wang Date: Thu, 23 Feb 2023 12:48:40 -0600 Subject: [PATCH] address CodeQL notes --- test/float.cpp | 2 +- test/mitccrh.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/float.cpp b/test/float.cpp index ef8acd9..83fe734 100644 --- a/test/float.cpp +++ b/test/float.cpp @@ -41,9 +41,9 @@ bool accurate(double a, double b, double err) { else return false; } -PRG prg; template void test_float(double precision, int runs = 1000) { + PRG prg; for(int i = 0; i < runs; ++i) { int ia = 0, ib = 0; prg.random_data(&ia, 4); diff --git a/test/mitccrh.cpp b/test/mitccrh.cpp index 74e7208..504dec8 100644 --- a/test/mitccrh.cpp +++ b/test/mitccrh.cpp @@ -4,7 +4,7 @@ using namespace std; using namespace emp; -void print_keys(AES_KEY key) { +void print_keys(AES_KEY& key) { cout << "round keys\n"; for(int i = 0; i < 11; i++) { cout << key.rd_key[i]<