public void XRandomTest1() { XRandom x1 = new XRandom(987654321); XRandom x11 = new XRandom(987654321); XRandom x2 = new XRandom(123456789); byte[] b1 = x1.GetBytes(100); byte[] b11 = x11.GetBytes(100); byte[] b2 = x2.GetBytes(100); Assert.IsFalse(b1.HasChanges(b11)); Assert.IsTrue(b1.HasChanges(b2)); }
public void XRandomTest() { Guid g1 = Guid.NewGuid(); Guid g2 = Guid.NewGuid(); XRandom x1 = new XRandom(g1); XRandom x11 = new XRandom(g1); XRandom x2 = new XRandom(g2); byte[] b1 = x1.GetBytes(100); byte[] b11 = x11.GetBytes(100); byte[] b2 = x2.GetBytes(100); Assert.IsFalse(b1.HasChanges(b11)); Assert.IsTrue(b1.HasChanges(b2)); }