Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TEST(Random, fill_array_uint32)
- {
- CRandom* prng = new CRandom();
- CRandom* prng2 = new CRandom();
- SGVector<uint32_t> rv(2*SFMT_N32+1), rv2(2*SFMT_N32+1);
- prng->fill_array(rv.vector, rv.vlen);
- prng2->fill_array(rv2.vector, rv2.vlen);
- SG_UNREF(prng); SG_UNREF(prng2);
- for (int32_t i = 0; i < rv.vlen; i++)
- EXPECT_EQ(rv2[i], rv[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement