Skip to content

Commit 4fa4d33

Browse files
boost::uniform_smalliint
1 parent 570cbba commit 4fa4d33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#include <boost/dynamic_bitset.hpp>
5454
#include <boost/multiprecision/cpp_int.hpp>
5555
#include <boost/random.hpp>
56+
#include <boost/random/uniform_smallint.hpp>
5657

5758
#include <pybind11/pybind11.h>
5859
#include <pybind11/stl.h>
@@ -745,7 +746,7 @@ inline BigInteger modExp(BigInteger base, BigInteger exp, const BigInteger &mod)
745746

746747
struct Factorizer {
747748
std::mutex batchMutex;
748-
std::uniform_int_distribution<size_t> dis;
749+
boost::uniform_smallint<size_t> dis;
749750
std::uniform_int_distribution<size_t> wordDis;
750751
BigInteger toFactorSqr;
751752
BigInteger toFactor;

0 commit comments

Comments
 (0)