Change random number generator property name in pCampbot

iar_mods
Justin Clark-Casey (justincc) 2011-11-23 18:00:41 +00:00
parent b56410285b
commit e394f83df0
1 changed files with 7 additions and 1 deletions

View File

@ -50,7 +50,12 @@ namespace pCampBot
protected CommandConsole m_console;
protected List<Bot> m_lBot;
protected Random somthing = new Random(Environment.TickCount);
/// <summary>
/// Random number generator.
/// </summary>
public Random Rng { get; private set; }
public IConfig Config { get; private set; }
/// <summary>
@ -63,6 +68,7 @@ namespace pCampBot
/// </summary>
public BotManager()
{
Rng = new Random(Environment.TickCount);
AssetsReceived = new Dictionary<UUID, bool>();
m_console = CreateConsole();