public void TestRandomSeed() { // since it's random; these != 0 checks MAY THEORETICALLY fail; but the risk should be 1 in uint.maxvalue var a = RandomSeed.GetUInt32(); Assert.IsTrue(a != 0); var b = RandomSeed.GetUInt64(); Assert.IsTrue(b != 0); var expanded = RandomSeed.ExpandSeed(123); Assert.IsTrue((expanded & 0b11111111_11111111_11111111_11111111_00000000_00000000_00000000_00000000ul) != 0); }