diff --git a/include/comm/Comm.hpp b/include/comm/Comm.hpp index b2fa0e8de..f152d764d 100644 --- a/include/comm/Comm.hpp +++ b/include/comm/Comm.hpp @@ -36,9 +36,6 @@ #include #include #include -#include -#include -#include namespace boost_ip = boost::asio::ip; // reduce the typing a bit later... using IpAddress = boost_ip::address; diff --git a/include/primitives/Mersenne.hpp b/include/primitives/Mersenne.hpp index cfcd9ca02..11a46634f 100644 --- a/include/primitives/Mersenne.hpp +++ b/include/primitives/Mersenne.hpp @@ -393,9 +393,8 @@ FieldType TemplateField::Random() { unsigned long b; if(elementSizeInBytes<=4) b = prg.getRandom32(); - else{ + else b = prg.getRandom64()>>(64-elementSizeInBits); - } return GetElement(b); }