MCPcopy Create free account
hub / github.com/ddnet/ddnet / TEST

Function TEST

src/test/prng_test.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54TEST(Prng, EqualsPcg32GlobalDemo)
55{
56 uint64_t aSeed[2] = {42, 54};
57
58 CPrng Prng;
59 Prng.Seed(aSeed);
60 for(auto Expected : PCG32_GLOBAL_DEMO)
61 {
62 EXPECT_EQ(Prng.RandomBits(), Expected);
63 }
64}
65
66TEST(Prng, Description)
67{

Callers

nothing calls this directly

Calls 3

SeedMethod · 0.80
RandomBitsMethod · 0.80
DescriptionMethod · 0.45

Tested by

no test coverage detected