[entertainment] use thread safe random, update /roll number range

This commit is contained in:
Andriy
2023-01-17 23:13:06 +02:00
parent 98b1e2f0f7
commit 83296efbb7
5 changed files with 49 additions and 7 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using BotFramework.Attributes;
using BotFramework.Enums;
using Kruzya.TelegramBot.Core;
using Kruzya.TelegramBot.Core.Data;
using Microsoft.Extensions.Logging;
@@ -28,6 +29,6 @@ namespace West.Entertainment.Handler.Fun
await HandleAnimation();
}
public Python(CoreContext db, ILogger<Python> logger) : base(db, logger) { }
public Python(CoreContext db, ILogger<Python> logger, ThreadSafeRandom rng) : base(db, logger, rng) { }
}
}