Searched refs:random (Results 1 - 25 of 619) sorted by relevance

1234567891011>>

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
H A DKeyGenerationParameters.java10 private SecureRandom random; field in class:KeyGenerationParameters
17 * @param random the random byte source.
21 SecureRandom random,
24 this.random = random;
29 * return the random source associated with this
32 * @return the generators random source.
36 return random;
20 KeyGenerationParameters( SecureRandom random, int strength) argument
H A DCipherKeyGenerator.java10 protected SecureRandom random; field in class:CipherKeyGenerator
21 this.random = param.getRandom();
34 random.nextBytes(key);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
H A DBaseAlgorithmParameterGenerator.java9 protected SecureRandom random; field in class:BaseAlgorithmParameterGenerator
14 SecureRandom random)
17 this.random = random;
12 engineInit( int strength, SecureRandom random) argument
H A DBaseKeyGenerator.java37 SecureRandom random)
44 SecureRandom random)
46 if (random != null)
48 engine.init(new KeyGenerationParameters(random, defaultKeySize));
55 SecureRandom random)
59 if (random == null)
61 random = new SecureRandom();
63 engine.init(new KeyGenerationParameters(random, keySize));
35 engineInit( AlgorithmParameterSpec params, SecureRandom random) argument
43 engineInit( SecureRandom random) argument
53 engineInit( int keySize, SecureRandom random) argument
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-110509.js33 Math.random();
H A Dregress-235311.js31 String.fromCharCode(Math.random() * 26 + (4294967295) | 0);
/external/clang/test/Lexer/
H A Dmsdos-cpm-eof.c8 I am random garbage after ^Z
/external/v8/test/mjsunit/regress/
H A Dregress-110509.js33 Math.random();
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DDSAParameterGenerationParameters.java14 private final SecureRandom random; field in class:DSAParameterGenerationParameters
17 * Construct without a usage index, this will do a random construction of G.
22 * @param random the source of randomness to use.
28 SecureRandom random)
30 this(L, N, certainty, random, -1);
39 * @param random the source of randomness to use.
46 SecureRandom random,
53 this.random = random;
73 return random;
24 DSAParameterGenerationParameters( int L, int N, int certainty, SecureRandom random) argument
42 DSAParameterGenerationParameters( int L, int N, int certainty, SecureRandom random, int usageIndex) argument
[all...]
H A DParametersWithRandom.java10 private SecureRandom random; field in class:ParametersWithRandom
15 SecureRandom random)
17 this.random = random;
29 return random;
13 ParametersWithRandom( CipherParameters parameters, SecureRandom random) argument
H A DDSAKeyGenerationParameters.java13 SecureRandom random,
16 super(random, params.getP().bitLength() - 1);
12 DSAKeyGenerationParameters( SecureRandom random, DSAParameters params) argument
H A DECKeyGenerationParameters.java14 SecureRandom random)
16 super(random, domainParams.getN().bitLength());
12 ECKeyGenerationParameters( ECDomainParameters domainParams, SecureRandom random) argument
/external/guava/guava-tests/test/com/google/common/io/
H A DRandomAmountInputStream.java24 /** Returns a random portion of the requested bytes on each call. */
26 private final Random random; field in class:RandomAmountInputStream
28 public RandomAmountInputStream(InputStream in, Random random) { argument
30 this.random = random;
34 return super.read(b, off, random.nextInt(len) + 1);
/external/compiler-rt/BlocksRuntime/tests/
H A Drettypepromotion.c30 if (random()) return LESS;
31 if (random()) return EQUAL;
32 if (random()) return GREATER;
/external/eigen/test/
H A Dproduct_large.cpp15 CALL_SUBTEST_1( product(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
16 CALL_SUBTEST_2( product(MatrixXd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
17 CALL_SUBTEST_3( product(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );
18 CALL_SUBTEST_4( product(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2), internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2))) );
19 CALL_SUBTEST_5( product(Matrix<float,Dynamic,Dynamic,RowMajor>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<in
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
H A DISO10126d2Padding.java13 SecureRandom random; field in class:ISO10126d2Padding
18 * @param random a SecureRandom if available.
20 public void init(SecureRandom random) argument
23 if (random != null)
25 this.random = random;
29 this.random = new SecureRandom();
55 in[inOff] = (byte)random.nextInt();
H A DX923Padding.java9 * passed in random padding is assumed, otherwise padding with zeros is used.
14 SecureRandom random = null; field in class:X923Padding
19 * @param random a SecureRandom if one is available.
21 public void init(SecureRandom random) argument
24 this.random = random;
49 if (random == null)
55 in[inOff] = (byte)random.nextInt();
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
H A DDHParametersGenerator.java12 private SecureRandom random; field in class:DHParametersGenerator
21 * @param random a source of randomness
26 SecureRandom random)
30 this.random = random;
44 BigInteger[] safePrimes = DHParametersHelper.generateSafePrimes(size, certainty, random);
48 BigInteger g = DHParametersHelper.selectGenerator(p, q, random);
23 init( int size, int certainty, SecureRandom random) argument
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DMyAlgorithmParameterGeneratorSpi.java38 protected void engineInit(int keysize, SecureRandom random) { argument
45 SecureRandom random) {
46 if (random == null) {
47 throw new IllegalArgumentException("random is null");
44 engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
H A DMyKeyPairGeneratorSpi.java38 public void initialize(int keysize, SecureRandom random) { argument
43 if (random == null) {
44 throw new IllegalArgumentException("Invalid random");
52 public void initialize(AlgorithmParameterSpec params, SecureRandom random) argument
54 if (random == null) {
56 "Not supported for null random");
/external/arduino/hardware/arduino/cores/arduino/
H A DWMath.cpp37 long random(long howbig) function
42 return random() % howbig;
45 long random(long howsmall, long howbig) function
51 return random(diff) + howsmall;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
H A DAlgorithmParameterGeneratorSpi.java18 protected SecureRandom random; field in class:AlgorithmParameterGeneratorSpi
25 SecureRandom random)
28 this.random = random;
33 SecureRandom random)
44 this.random = random;
51 if (random != null)
53 pGen.init(strength, 20, random);
23 engineInit( int strength, SecureRandom random) argument
31 engineInit( AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
H A DBCKeyStore.java11 * set the random source for the key store
13 public void setRandom(SecureRandom random); argument
/external/chromium_org/v8/test/webkit/
H A Dsort-randomly.js32 arr.sort(function() { return 0.5 - Math.random(); });
35 // Sorting objects that change each time sort() looks at them is the same as using a random compareFn.
37 this.toString = function() { return (Math.random() * 100).toString(); }
/external/clang/test/Analysis/
H A Dsecurity-syntax-checks-no-emit.c16 long random(void);
33 random(); // no-warning

Completed in 4816 milliseconds

1234567891011>>