We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffacb1 commit 2dffbd9Copy full SHA for 2dffbd9
shuffled.hpp
@@ -81,8 +81,8 @@ class iter::impl::ShuffledView {
81
in_begin(std::begin(container)), seed(seed) {
82
if (size > 0)
83
{
84
- uint64_t mask = 0;
85
- std::uninitialized_fill((char*)&mask, (char*)&mask + size_approx, 0xFF);
+ uint64_t mask = 0xFFFFFFFFFFFFFFFFULL;
+ mask >> (64-size_approx);
86
this->seed = seed & mask;
87
this->seed = lfsr::shift(this->seed, size_approx);
88
while(this->seed >= size)
0 commit comments