mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
feat(entertainment): use CSPRNG in /guess & /roll
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Threading.Tasks;
|
||||
using BotFramework.Attributes;
|
||||
using BotFramework.Enums;
|
||||
@@ -65,7 +66,7 @@ public class Guess : CommonHandler
|
||||
}
|
||||
|
||||
var messageId = RawUpdate.Message!.MessageId;
|
||||
var guessedNumber = _rng.Next(1, 4);
|
||||
var guessedNumber = RandomNumberGenerator.GetInt32(1, 4);
|
||||
// Console.WriteLine(guessedNumber);
|
||||
var guessData = new GuessData
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user