# HG changeset patch # User Peter Mehlitz # Date 1423246332 28800 # Node ID 3a19eedcc13ddc871f8d246920697c43d7cc96bc # Parent 1ba6ea44e5f91069aafbc34d6ad80cfb44334a32 added a UniqueRandomPermGenerator that makes sure we don't return duplicates. It also checks the (unlikely and pointless) case that we request more permutations than N! and caps the number of samples accordingly diff -r 1ba6ea44e5f9 -r 3a19eedcc13d src/main/gov/nasa/jpf/util/OATHash.java --- a/src/main/gov/nasa/jpf/util/OATHash.java Thu Feb 05 19:13:42 2015 -0800 +++ b/src/main/gov/nasa/jpf/util/OATHash.java Fri Feb 06 10:12:12 2015 -0800 @@ -84,6 +84,13 @@ h = hashMixin( h, key3); return hashFinalize(h); - + } + + public static int hash (int[] keys){ + int h = 0; + for (int i=0; i