Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Test empty constructor for LinuxPRNGSecureRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
Helios Alonso committed Sep 16, 2016
1 parent 7638632 commit 6fcc13b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import android.os.Build;
import com.facebook.crypto.exception.KeyChainException;
import com.facebook.crypto.proguard.annotations.DoNotStrip;

/**
* SecureRandom is not really random in android and are biased:
Expand Down Expand Up @@ -242,6 +243,14 @@ public LinuxPRNGSecureRandomProvider() {
*/
public static class LinuxPRNGSecureRandom extends SecureRandomSpi {

/**
* Explicit constructor to workaround issue #157
*/
@DoNotStrip
public LinuxPRNGSecureRandom() {
super();
}

/*
* IMPLEMENTATION NOTE: Requests to generate bytes and to mix in a seed
* are passed through to the Linux PRNG (/dev/urandom). Instances of
Expand Down

0 comments on commit 6fcc13b

Please sign in to comment.