Skip to content

Commit

Permalink
Fixes dwdyer#18
Browse files Browse the repository at this point in the history
Use SecretKeySpec instead of a reimplementation that has no test coverage. Don't use random.org unnecessarily in CMWC4096RNGTest.
  • Loading branch information
Pr0methean committed Jul 27, 2017
1 parent 66a9404 commit 3089d88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Random;
import java.util.concurrent.locks.ReentrantLock;
import javax.crypto.Cipher;
import javax.crypto.SecretKeySpec;
import javax.crypto.spec.SecretKeySpec;
import org.uncommons.maths.binary.BinaryUtils;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
public class CMWC4096RNGTest
{
private final SeedGenerator seedGenerator = new RandomDotOrgSeedGenerator();
private final SeedGenerator seedGenerator = DefaultSeedGenerator.getInstance();

/**
* Test to ensure that two distinct RNGs with the same seed return the
Expand Down

0 comments on commit 3089d88

Please sign in to comment.