mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Adds a possible const.
This commit is contained in:
parent
da3ee381f4
commit
b0f7b762af
@ -52,7 +52,7 @@ template <typename IntType = uint64_t, IntType polynomial = LSFRPolynomial<IntTy
|
||||
determining the bit that was just shifted out.
|
||||
*/
|
||||
IntType next() {
|
||||
auto result = value_ & 1;
|
||||
const auto result = value_ & 1;
|
||||
value_ = (value_ >> 1) ^ (result * polynomial);
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user