Searched refs:rng (Results 1 – 3 of 3) sorted by relevance
167 SecureRandom rng = new SecureRandom(); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException() local173 keyGenerator.init(keySizeBits, rng); in testInitWithKeySizeAndSecureRandomThrowsUnsupportedOperationException()201 SecureRandom rng = new SecureRandom(); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local206 keyGenerator.init((AlgorithmParameterSpec) null, rng); in testInitWithNullAlgParamsAndSecureRandomThrowsInvalidAlgorithmParameterException() local295 CountingSecureRandom rng = new CountingSecureRandom(); in testAesKeySupportedSizesHelper() local298 rng.resetCounters(); in testAesKeySupportedSizesHelper()312 rng.resetCounters(); in testAesKeySupportedSizesHelper()315 keyGenerator.init(spec, rng); in testAesKeySupportedSizesHelper()318 assertEquals((i + 7) / 8, rng.getOutputSizeBytes()); in testAesKeySupportedSizesHelper()324 keyGenerator.init(spec, rng); in testAesKeySupportedSizesHelper()[all …]
279 Random rng = new Random(32176L); in testInputStream() local319 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testInputStream()357 Random rng = new Random(32176L); in testOutputStream() local397 int l = writeLengths[rng.nextInt(writeLengths.length)]; in testOutputStream()
147 Random rng = new Random(); in testCameraDeviceSetupCreationFailure() local148 int invalidId = rng.ints(/*streamSize=*/ 100, /*randomNumberOrigin=*/ 0, in testCameraDeviceSetupCreationFailure()