For individual bots, seed random number generator with a random number from BotManager rather than Environment.Tickcount

Otherwise, since bots are now created all at once, a bunch will get exactly the same tickcount and hence number sequences
link-sitting
Justin Clark-Casey (justincc) 2013-11-01 02:04:04 +00:00
parent cc7065f9ee
commit c6395240f0
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ namespace pCampBot
{ {
ConnectionState = ConnectionState.Disconnected; ConnectionState = ConnectionState.Disconnected;
Random = new Random(Environment.TickCount);// We do stuff randomly here Random = new Random(bm.Rng.Next());
FirstName = firstName; FirstName = firstName;
LastName = lastName; LastName = lastName;
Name = string.Format("{0} {1}", FirstName, LastName); Name = string.Format("{0} {1}", FirstName, LastName);