summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-11-17 00:07:13 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-11-17 00:07:13 +0700
commitb06af94e3319401f1bfdaf4884af723ec7d22782 (patch)
tree8c258f7c5b5f2005905c84d09c83d4f31024dace
parentFix file name (diff)
downloadBouncyCastle.NET-ed25519-b06af94e3319401f1bfdaf4884af723ec7d22782.tar.xz
Add missing lock for PORTABLE
-rw-r--r--crypto/src/security/SecureRandom.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/security/SecureRandom.cs b/crypto/src/security/SecureRandom.cs
index 875709e57..8683b4729 100644
--- a/crypto/src/security/SecureRandom.cs
+++ b/crypto/src/security/SecureRandom.cs
@@ -106,7 +106,7 @@ namespace Org.BouncyCastle.Security
 
         public static byte[] GetSeed(int length)
         {
-#if NETCF_1_0
+#if NETCF_1_0 || PORTABLE
             lock (master)
 #endif
             return Master.GenerateSeed(length);