Skip to content

Commit

Permalink
Forgot to create random number gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Jul 16, 2024
1 parent 56c5584 commit 09f60c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chaos.NaCl/Ed25519.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static string GeneratePrivateKeySeed()
{
#if NETSTANDARD || NET462
byte[] random = new byte[PrivateKeySeedSizeInBytes];
RandomNumberGenerator.GetBytes(random);
RandomNumberGenerator.Create().GetBytes(random);
return Convert.ToBase64String(random);
#else
return Convert.ToBase64String(RandomNumberGenerator.GetBytes(PrivateKeySeedSizeInBytes));
Expand Down

0 comments on commit 09f60c2

Please sign in to comment.