Skip to content

Commit ce470c9

Browse files
committed
type
1 parent b887790 commit ce470c9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/scl/primitives/prg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class PRG {
156156
/**
157157
* @brief The seed.
158158
*/
159-
std::array<unsigned char, BLOCK_SIZE> Seed() const {
159+
std::array<unsigned char, BLOCK_SIZE> seed() const {
160160
return m_seed;
161161
}
162162

test/scl/primitives/test_prg.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#include <algorithm>
1918
#include <catch2/catch_test_macros.hpp>
2019
#include <catch2/matchers/catch_matchers.hpp>
2120
#include <catch2/matchers/catch_matchers_exception.hpp>
2221
#include <cstring>
23-
#include <iostream>
2422
#include <stdexcept>
2523

2624
#include "scl/primitives/prg.h"
@@ -66,7 +64,7 @@ TEST_CASE("PRG predictable", "[misc]") {
6664
auto prg0 = PRG::create(seed, 15);
6765
auto prg1 = PRG::create(seed, 15);
6866

69-
REQUIRE(prg0.Seed() == prg1.Seed());
67+
REQUIRE(prg0.seed() == prg1.seed());
7068

7169
auto bytes0 = prg0.next(100);
7270
auto bytes1 = prg1.next(100);

0 commit comments

Comments
 (0)