Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
morinim committed Mar 29, 2024
1 parent 7049fa6 commit 08ac318
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,6 @@

#include "xoshiro256ss.h"

void test_xoshiro256ss()
{
vigna::xoshiro256ss gen;

std::random_device dev;
gen.seed(dev());

std::uniform_int_distribution<> dist(0, 10);

std::map<unsigned, unsigned> hist;

for(unsigned n(0); n < 1000000; ++n)
++hist[dist(gen)];

std::cout << "XOSHIRO256**\n";
for(auto p : hist)
std::cout << std::setw(3) << p.first << ' '
<< std::string(p.second / 10000, '*') << '\n';
}

void test_xoroshiro128p()
{
vigna::xoroshiro128p gen;

std::random_device dev;
gen.seed(dev());

std::uniform_int_distribution<> dist(0, 10);

std::map<unsigned, unsigned> hist;

for(unsigned n(0); n < 1000000; ++n)
++hist[dist(gen)];

std::cout << "XOROSHIRO128+\n";
for(auto p : hist)
std::cout << std::setw(3) << p.first << ' '
<< std::string(p.second / 10000, '*') << '\n';
}

int main()
{
const vigna::xoshiro256ss::result_type reference[] =
Expand Down

0 comments on commit 08ac318

Please sign in to comment.