Update rc4.cpp
This commit is contained in:
parent
9ad949a760
commit
c97592e485
@ -2,14 +2,14 @@
|
||||
// Licensed under GPL v3
|
||||
|
||||
#include "rc4.h"
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <numeric>
|
||||
#include <cstddef>
|
||||
|
||||
static constexpr std::array<uchar, 256> get_init_state() noexcept
|
||||
{
|
||||
std::array<uchar, 256> state{};
|
||||
std::iota(state.begin(), state.end(), 0);
|
||||
for (std::size_t i = 0; i < 256; ++i) {
|
||||
state[i] = static_cast<uchar>(i);
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user