summary refs log tree commit diff
path: root/crypto/src/math/ec/ECCurve.cs
diff options
context:
space:
mode:
authorJeffrey Stedfast <jeff@xamarin.com>2015-10-19 10:45:20 -0400
committerJeffrey Stedfast <jeff@xamarin.com>2015-10-19 10:45:20 -0400
commit9bb283017763ea21484dd7ece2a9b6f32e926ede (patch)
tree6ef7d0f0e1c7d1e565bbd9e92aafdff786a56835 /crypto/src/math/ec/ECCurve.cs
parentUpdated Visual Studio 2010 project files (diff)
parentSigOutputStream removed from the other-platform path too. (diff)
downloadBouncyCastle.NET-ed25519-9bb283017763ea21484dd7ece2a9b6f32e926ede.tar.xz
Merge branch 'master' into vs2010
Diffstat (limited to 'crypto/src/math/ec/ECCurve.cs')
-rw-r--r--crypto/src/math/ec/ECCurve.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/math/ec/ECCurve.cs b/crypto/src/math/ec/ECCurve.cs

index 40b46ce72..fa2c72570 100644 --- a/crypto/src/math/ec/ECCurve.cs +++ b/crypto/src/math/ec/ECCurve.cs
@@ -760,10 +760,9 @@ namespace Org.BouncyCastle.Math.EC ECFieldElement gamma, z, zeroElement = FromBigInteger(BigInteger.Zero); int m = FieldSize; - Random rand = new Random(); do { - ECFieldElement t = FromBigInteger(new BigInteger(m, rand)); + ECFieldElement t = FromBigInteger(BigInteger.Arbitrary(m)); z = zeroElement; ECFieldElement w = beta; for (int i = 1; i < m; i++)