feat(entertainment): use CSPRNG in /guess & /roll

This commit is contained in:
Andriy
2023-12-13 00:34:23 +02:00
parent aa0d1c1cc1
commit aa072e246c
2 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -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
{