diff options
author | Justin Clark-Casey (justincc) | 2013-11-01 02:04:04 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-11-01 02:04:04 +0000 |
commit | c6395240f0dd7767cb9f14f2ad8b6cccadf1351a (patch) | |
tree | e4e6e2073c483780a86398849a998742665030a4 | |
parent | minor: change "bot" pCampBot help cateogry to "Bots" (diff) | |
download | opensim-SC-c6395240f0dd7767cb9f14f2ad8b6cccadf1351a.zip opensim-SC-c6395240f0dd7767cb9f14f2ad8b6cccadf1351a.tar.gz opensim-SC-c6395240f0dd7767cb9f14f2ad8b6cccadf1351a.tar.bz2 opensim-SC-c6395240f0dd7767cb9f14f2ad8b6cccadf1351a.tar.xz |
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
-rw-r--r-- | OpenSim/Tools/pCampBot/Bot.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs index d0a4ef3..ccc24fa 100644 --- a/OpenSim/Tools/pCampBot/Bot.cs +++ b/OpenSim/Tools/pCampBot/Bot.cs | |||
@@ -166,7 +166,7 @@ namespace pCampBot | |||
166 | { | 166 | { |
167 | ConnectionState = ConnectionState.Disconnected; | 167 | ConnectionState = ConnectionState.Disconnected; |
168 | 168 | ||
169 | Random = new Random(Environment.TickCount);// We do stuff randomly here | 169 | Random = new Random(bm.Rng.Next()); |
170 | FirstName = firstName; | 170 | FirstName = firstName; |
171 | LastName = lastName; | 171 | LastName = lastName; |
172 | Name = string.Format("{0} {1}", FirstName, LastName); | 172 | Name = string.Format("{0} {1}", FirstName, LastName); |