Эх сурвалжийг харах

Merge pull request #3248 from nextcloud/disableRNGwarning

disable lint warning on not secure RNG on < 4.3
Andy Scherzinger 6 жил өмнө
parent
commit
bef25b7bc0

+ 3 - 0
src/main/java/com/owncloud/android/utils/DataHolderUtil.java

@@ -19,6 +19,8 @@
  */
 package com.owncloud.android.utils;
 
+import android.annotation.SuppressLint;
+
 import java.lang.ref.WeakReference;
 import java.math.BigInteger;
 import java.security.SecureRandom;
@@ -34,6 +36,7 @@ public class DataHolderUtil {
 
     private static DataHolderUtil instance;
 
+    @SuppressLint("TrulyRandom")
     private SecureRandom random = new SecureRandom();
 
     public static synchronized DataHolderUtil getInstance() {