Replaces the per fixture random generators with the shared random instance

This commit is contained in:
BinaryAlley committed 2026-09-27 21:52:36 +03:00
1 parent ab4d596500
commit 5aa21c0c0a
9 files changed
+31 -39

No files matched your search

@@ -20,7 +20,7 @@ public class QRCodeGeneratorFixture
{
string username = new Faker().Person.UserName;
byte[] secret = new byte[20]; // Standard TOTP secret length
new Random().NextBytes(secret);
Random.Shared.NextBytes(secret);
return (username, secret);
}