Ejemplo n.º 1
0
 public ResettableRandom(string seed)
     : this(StringHash.StableHash(seed))
 {
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Reseeds this instance using the hashcode of a given string.
 /// </summary>
 /// <param name="seed"></param>
 public void Reseed(string seed)
 {
     Reseed(StringHash.StableHash(seed));
 }