Skip to content

Commit

Permalink
Fix an accidental bad push
Browse files Browse the repository at this point in the history
  • Loading branch information
Rumata888 committed Nov 1, 2024
1 parent 9e24ee2 commit 20c0bd5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions barretenberg/cpp/src/barretenberg/ecc/fields/field_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,8 @@ template <class T> field<T> field<T>::random_element(numeric::RNG* engine) noexc
constexpr field pow_2_256 = field(uint256_t(1) << 128).sqr();
field lo;
field hi;
*(uint256_t*)lo.data = engine->get_random_uint256();
*(uint256_t*)hi.data = engine->get_random_uint256();
lo.self_reduce_once();
lo.self_reduce_once();
lo.self_reduce_once();
hi.self_reduce_once();
hi.self_reduce_once();
hi.self_reduce_once();
lo = engine->get_random_uint256();
hi = engine->get_random_uint256();
return lo + (pow_2_256 * hi);
}

Expand Down

0 comments on commit 20c0bd5

Please sign in to comment.