Sha256: bce55a920c99e9fc5d6a048a253cff8062a0865d6241dbd85ad28b02c38533c8
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil -*- // Copyright 2017 University of Massachusetts, Amherst #include <stdalign.h> #include <cstdint> #include <cstdlib> #include "gtest/gtest.h" #include "rng/mwc.h" using namespace mesh; TEST(RNG, MWCRange) { MWC mwc{internal::seed(), internal::seed()}; for (size_t i = 0; i < 1000; i++) { size_t n = mwc.inRange(0, 1); if (n != 0 && n != 1) { ASSERT_TRUE(false); } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mesh-rb-0.0.1 | ext/mesh/mesh/src/testing/unit/rng_test.cc |