Random is now even more random

This commit is contained in:
dboerlage 2017-04-25 17:27:11 +02:00
parent 5dd7d343ee
commit 341de410f1
No known key found for this signature in database
GPG key ID: BDA07B7D3FCF147F
6 changed files with 46 additions and 9 deletions

View file

@ -0,0 +1,29 @@
using System;
namespace Geekbot.net.Lib.IClients
{
public interface IRandomClient
{
Random Client { get; set; }
}
public sealed class RandomClient : IRandomClient
{
public RandomClient()
{
try
{
Client = new Random();
}
catch (Exception)
{
Console.WriteLine("Start Redis pls...");
Environment.Exit(1);
}
}
public Random Client { get; set; }
}
}