Changeset View
Changeset View
Standalone View
Standalone View
src/test/lcg_tests.cpp
// Copyright (c) 2019 The Bitcoin developers | // Copyright (c) 2019 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "test/lcg.h" | #include <test/lcg.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_AUTO_TEST_CASE(lcg_tests) { | BOOST_AUTO_TEST_CASE(lcg_tests) { | ||||
{ | { | ||||
MMIXLinearCongruentialGenerator lcg; | MMIXLinearCongruentialGenerator lcg; | ||||
// We want that the first iteration is 0 which is a helpful special | // We want that the first iteration is 0 which is a helpful special | ||||
// case. | // case. | ||||
Show All 34 Lines |