/** * Replacement function for nextBoolean * * @return a boolean. */ public static boolean nextBoolean() { wasAccessed = true; return nextInt(1)!=0; }
/** * Replacement for function java.util.UUID.randomUUID() * @return */ public static UUID randomUUID() { wasAccessed = true; byte[] randomBytes = new byte[16]; nextBytes(randomBytes); randomBytes[6] &= 0x0f; /* clear version */ randomBytes[6] |= 0x40; /* set to version 4 */ randomBytes[8] &= 0x3f; /* clear variant */ randomBytes[8] |= 0x80; /* set to IETF variant */ UUID newUUID = buildNewUUID(randomBytes); return newUUID; }
/** * Replacement function for nextBoolean * * @return a boolean. */ public boolean nextBoolean() { return org.evosuite.runtime.Random.nextBoolean(); }
/** * Replacement function for nextDouble * * @return a float. */ public double nextDouble() { return org.evosuite.runtime.Random.nextDouble(); }
/** * Replacement function for nextLong * * @return a long. */ public long nextLong() { return org.evosuite.runtime.Random.nextLong(); } }
/** * Replacement function for nextBytes * @param bytes */ public void nextBytes(byte[] bytes) { org.evosuite.runtime.Random.nextBytes(bytes); }
/** * Replacement function for nextFloat * * @return a float. */ public float nextFloat() { return org.evosuite.runtime.Random.nextFloat(); }
/** * Replacement function for nextGaussian * * @return a double. */ public double nextGaussian() { return org.evosuite.runtime.Random.nextGaussian(); }
public static UUID fromString(String s) { return org.evosuite.runtime.Random.randomUUID(); }
Random.reset(); System.resetRuntime(); MockThread.reset();
/** * Replacement function for nextGaussian * * @return a double. */ public static double nextGaussian() { wasAccessed = true; return nextDouble(); }
/** * Replacement function for nextLong * * @return a long. */ public long nextLong() { return org.evosuite.runtime.Random.nextLong(); }
/** * Replacement function for nextBytes * * @param bytes */ public void nextBytes(byte[] bytes) { org.evosuite.runtime.Random.nextBytes(bytes); }
/** * Replacement function for nextFloat * * @return a float. */ public float nextFloat() { return org.evosuite.runtime.Random.nextFloat(); }
/** * Replacement function for nextGaussian * * @return a double. */ public double nextGaussian() { return org.evosuite.runtime.Random.nextGaussian(); }
public static UUID randomUUID() { return org.evosuite.runtime.Random.randomUUID(); }
/** * Replacement function for nextInt * * @return a int. */ public int nextInt() { return org.evosuite.runtime.Random.nextInt(); }
/** * Replacement function for nextDouble * * @return a float. */ public double nextDouble() { return org.evosuite.runtime.Random.nextDouble(); }
/** * Replacement function for nextBoolean * * @return a boolean. */ public boolean nextBoolean() { return org.evosuite.runtime.Random.nextBoolean(); }
/** * Replacement function for nextInt * * @param max * a int. * @return a int. */ public int nextInt(int max) { return org.evosuite.runtime.Random.nextInt(max); }