48 if (rev_binary_exponent.size() == 0)
51 if (rev_binary_exponent[0] == 1)
54 for (
typename std::vector<T>::const_iterator it =
55 rev_binary_exponent.cbegin() + 1;
56 it != rev_binary_exponent.cend(); ++it) {
75 std::random_device rd_seed;
77 std::mt19937 gen(rd_seed());
79 std::uniform_int_distribution<> distribution(2, num - 2);
81 T random = distribution(gen);
87 if (x == 1 || x == num - 1) {
91 while (d != num - 1) {