Searched refs:random (Results 1 - 25 of 1426) 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/apache-commons-math/src/main/java/org/apache/commons/math/random/
H A DNormalizedRandomGenerator.java18 package org.apache.commons.math.random;
21 * This interface represent a normalized random generator for
29 /** Generate a random scalar with null mean and unit standard deviation.
34 * @return a random scalar with null mean and unit standard deviation
H A DRandomVectorGenerator.java18 package org.apache.commons.math.random;
21 /** This interface represents a random generator for whole vectors.
30 /** Generate a random vector.
31 * @return a random vector as an array of double.
H A DBitsStreamGenerator.java17 package org.apache.commons.math.random;
22 /** Base class for random number generators that generates bits streams.
33 /** Creates a new random number generator.
54 * @param bits number of random bits to produce
55 * @return random bits generated
69 final int random = next(32);
70 bytes[i] = (byte) (random & 0xff);
71 bytes[i + 1] = (byte) ((random >> 8) & 0xff);
72 bytes[i + 2] = (byte) ((random >> 16) & 0xff);
73 bytes[i + 3] = (byte) ((random >> 2
[all...]
/external/clang/test/Lexer/
H A Dmsdos-cpm-eof.c8 I am random garbage after ^Z
/external/libcxx/test/libcxx/numerics/rand/rand.synopsis/
H A Dversion.pass.cpp10 // <random>
12 #include <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
/external/slf4j/slf4j-api/src/test/java/org/slf4j/
H A DDifferentiator.java32 static Random random = new Random(System.currentTimeMillis()); field in class:Differentiator
35 return (short) random.nextInt(Short.MAX_VALUE);
/external/libcxx/test/std/numerics/rand/rand.device/
H A Dentropy.pass.cpp10 // <random>
16 #include <random>
/external/libcxx/test/std/numerics/rand/rand.util/rand.util.seedseq/
H A Dassign.fail.cpp10 // <random>
16 #include <random>
H A Dcopy.fail.cpp10 // <random>
16 #include <random>
H A Ddefault.pass.cpp10 // <random>
16 #include <random>
/external/compiler-rt/test/BlocksRuntime/
H A Drettypepromotion.c30 if (random()) return LESS;
31 if (random()) return EQUAL;
32 if (random()) return GREATER;
/external/eigen/unsupported/test/
H A Dcxx11_tensor_const.cpp18 Tensor<int, 3> random(2,3,7);
19 random.setRandom();
21 TensorMap<Tensor<const int, 3> > constant(random.data(), 2, 3, 7);
28 VERIFY_IS_EQUAL((result(i,j,k)), random(i,j,k));
37 Tensor<int, 3> random(2,3,7);
38 random.setRandom();
40 TensorMap<Tensor<const int, 3> > constant1(random.data(), 2, 3, 7);
41 TensorMap<const Tensor<int, 3> > constant2(random.data(), 2, 3, 7);
42 const TensorMap<Tensor<int, 3> > constant3(random.data(), 2, 3, 7);
50 VERIFY_IS_EQUAL((result1(i,j)), random(
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
H A DRandomDSAKCalculator.java12 private SecureRandom random; field in class:RandomDSAKCalculator
19 public void init(BigInteger n, SecureRandom random) argument
22 this.random = random;
37 k = new BigInteger(qBitLength, random);
/external/guava/guava-tests/test/com/google/common/io/
H A DRandomAmountInputStream.java26 /** Returns a random portion of the requested bytes on each call. */
28 private final Random random; field in class:RandomAmountInputStream
30 public RandomAmountInputStream(InputStream in, Random random) { argument
32 this.random = checkNotNull(random);
36 return super.read(b, off, random.nextInt(len) + 1);
/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/curl/docs/cmdline-opts/
H A Degd-file.d2 Help: EGD socket path for random data
4 See-also: random-file
7 used to seed the random engine for SSL connections.
/external/autotest/tko/
H A Dunique_cookie.py1 import os, random namespace
7 If not, set cookie on client side: evaluate this key by a random string.
25 uid = str(random.random())[2:16] # random string of 14 digits
/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/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/
H A Dmax.pass.cpp10 // <random>
16 #include <random>

Completed in 486 milliseconds

1234567891011>>