Merge pull request #3248 from nextcloud/disableRNGwarning

disable lint warning on not secure RNG on < 4.3
This commit is contained in:
Andy Scherzinger 2018-11-07 21:44:13 +01:00 committed by GitHub
commit bef25b7bc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {