Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 24, 2023
1 parent 1c7f5c3 commit 3999329
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frozen/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ class linear_congruential_engine {
state_ = modulo(tmp, std::integral_constant<UIntType, modulus>());
return state_;
}
constexpr void discard(unsigned long long n) {
while (n--)
operator()();
}
// constexpr void discard(unsigned long long n) {
// while (n--)
// operator()();
// }
static constexpr result_type min() { return increment == 0u ? 1u : 0u; }
static constexpr result_type max() { return modulus - 1u; }
friend constexpr bool operator==(linear_congruential_engine const &self,
Expand Down

0 comments on commit 3999329

Please sign in to comment.