aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-11-01 02:04:04 +0000
committerJustin Clark-Casey (justincc)2013-11-01 02:04:04 +0000
commitc6395240f0dd7767cb9f14f2ad8b6cccadf1351a (patch)
treee4e6e2073c483780a86398849a998742665030a4 /OpenSim/Tools
parentminor: change "bot" pCampBot help cateogry to "Bots" (diff)
downloadopensim-SC_OLD-c6395240f0dd7767cb9f14f2ad8b6cccadf1351a.zip
opensim-SC_OLD-c6395240f0dd7767cb9f14f2ad8b6cccadf1351a.tar.gz
opensim-SC_OLD-c6395240f0dd7767cb9f14f2ad8b6cccadf1351a.tar.bz2
opensim-SC_OLD-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
Diffstat (limited to 'OpenSim/Tools')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs2
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);