mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
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
This commit is contained in:
@@ -166,7 +166,7 @@ namespace pCampBot
|
||||
{
|
||||
ConnectionState = ConnectionState.Disconnected;
|
||||
|
||||
Random = new Random(Environment.TickCount);// We do stuff randomly here
|
||||
Random = new Random(bm.Rng.Next());
|
||||
FirstName = firstName;
|
||||
LastName = lastName;
|
||||
Name = string.Format("{0} {1}", FirstName, LastName);
|
||||
|
||||
Reference in New Issue
Block a user