mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 19:21:10 +00:00
Replaces the per fixture random generators with the shared random instance
This commit is contained in:
1 parent
ab4d596500
commit
5aa21c0c0a
9 files changed
+31
-39
No files matched your search
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user