/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
H A D | MyKeyPairGenerator1.java | 61 public void initialize(int keysize, SecureRandom random) { argument 65 if (random == null) { 66 throw new InvalidParameterException("Incorrect random"); 69 secureRandom = random; 81 public void initialize(AlgorithmParameterSpec param, SecureRandom random) argument 83 if (random == null) { 84 throw new InvalidParameterException("Incorrect random"); 90 secureRandom = random;
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
H A D | JcaContentSignerBuilder.java | 25 private SecureRandom random; field in class:JcaContentSignerBuilder 49 public JcaContentSignerBuilder setSecureRandom(SecureRandom random) argument 51 this.random = random; 63 if (random != null) 65 sig.initSign(privateKey, random);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/ |
H A D | PKCS1Encoding.java | 32 private SecureRandom random; field in class:PKCS1Encoding 81 this.random = rParam.getRandom(); 86 this.random = new SecureRandom(); 164 random.nextBytes(block); // random fill 176 block[i] = (byte)random.nextInt();
|
H A D | OAEPEncoding.java | 25 private SecureRandom random; field in class:OAEPEncoding 83 this.random = rParam.getRandom(); 87 this.random = new SecureRandom(); 171 random.nextBytes(seed);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
H A D | KeyAgreementSpi.java | 165 SecureRandom random) 196 SecureRandom random) 162 engineInit( Key key, AlgorithmParameterSpec params, SecureRandom random) argument 194 engineInit( Key key, SecureRandom random) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
H A D | KeyPairGeneratorSpi.java | 51 SecureRandom random = new SecureRandom(); field in class:KeyPairGeneratorSpi.EC 88 SecureRandom random) 92 if (random != null) { 94 this.random = random; 104 initialize(ecParams, random); 119 SecureRandom random) 123 if (random == null) { 124 random = this.random; 86 initialize( int strength, SecureRandom random) argument 117 initialize( AlgorithmParameterSpec params, SecureRandom random) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/ |
H A D | DES.java | 133 // SecureRandom random) 143 // if (random == null) 145 // random = new SecureRandom(); 148 // random.nextBytes(iv); 184 SecureRandom random) 186 super.engineInit(keySize, random); 182 engineInit( int keySize, SecureRandom random) argument
|
/external/clang/utils/ABITest/ |
H A D | ABITestGen.py | 4 import random, atexit, time namespace 5 from random import randrange 236 elements = map(random.choice,fieldValues) 249 elements = [random.choice(values) for i in range(t.numElements)] 354 help="autogeneration mode (random or linear) [default %default]", 355 type='choice', choices=('random','linear'), default='linear') 363 help="maximum index for random autogeneration [default %default]", 366 help="random number generator seed [default %default]", 368 parser.add_option("", "--use-random-seed", dest="useRandomSeed", 369 help="use random valu [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ConcurrentHashMultisetBasherTest.java | 38 * do operations at random. Each thread keeps track of the per-key deltas that it's directly 105 private final Random random = new Random(); field in class:ConcurrentHashMultisetBasherTest.MutateTask 118 int keyIndex = random.nextInt(nKeys); 120 Operation op = operations[random.nextInt(operations.length)]; 123 int delta = random.nextInt(10); 129 int newValue = random.nextInt(3); 135 int newValue = random.nextInt(3); 143 int delta = random.nextInt(6); // [0, 5] 149 int delta = random.nextInt(5); // [0, 4]
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
H A D | Line.java | 190 * <code>random</code> determines a random point along the line.
191 * @return a random point on the line.
193 public Vector3f random() {
method in class:Line 194 return random(null);
198 * <code>random</code> determines a random point along the line.
201 * @return a random point on the line.
203 public Vector3f random(Vector3f result) {
method in class:Line 207 float rand = (float) Math.random();
[all...] |
H A D | Ring.java | 167 * <code>random</code> returns a random point within the ring.
169 * @return a random point within the ring.
171 public Vector3f random() {
method in class:Ring 172 return random(null);
177 * <code>random</code> returns a random point within the ring.
180 * @return a random point within the ring.
182 public Vector3f random(Vector3f result) {
method in class:Ring 187 // compute a random radiu [all...] |
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
H A D | HillHeightMap.java | 39 * Algorithm. Terrain is generatd by growing hills of random size and height at
40 * random points in the heightmap. The terrain is then normalized and valleys
52 private long seed; // the seed for the random number generator
96 * height map by using a random seed.
127 Random random = new Random(seed);
131 addHill(tempBuffer, random);
149 * Generates a new hill of random size and height at a random position in
156 * @param random
157 * the random numbe 159 addHill(float[][] tempBuffer, Random random) argument 205 randomRange(Random random, float min, float max) argument [all...] |
H A D | MidpointDisplacementHeightMap.java | 49 private float persistence; // How the random offset evolves with increasing passes
50 private long seed; // seed for random number generator
55 * the 4 corners to which a random value is added. Then other passes fill
57 * The random value is generated between the values <code>-range</code>
62 * to influence the random amount added.
74 * A seed to feed the random number generator.
92 * the 4 corners to which a random value is added. Then other passes fill
94 * The random value is generated between the values <code>-range</code>
124 Random random = new Random(seed);
126 tempBuffer[0][0] = random 169 doSquareStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, Random random) argument 201 doDiamondStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, Random random) argument 246 getOffset(Random random, float offsetRange, int[] coords, float average) argument [all...] |
/external/skia/src/gpu/ |
H A D | GrEffect.cpp | 24 const SkMatrix& TestMatrix(SkRandom* random) { argument 39 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))];
|
/external/skia/src/gpu/effects/ |
H A D | GrSimpleTextureEffect.cpp | 70 GrEffectRef* GrSimpleTextureEffect::TestCreate(SkRandom* random, argument 73 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : 75 const SkMatrix& matrix = GrEffectUnitTest::TestMatrix(random);
|
/external/skia/tests/ |
H A D | GLProgramsTest.cpp | 34 const GrEffectRef* create_random_effect(SkRandom* random, argument 39 sk_random.setSeed(random->nextU()); 60 SkRandom random; local 73 pdesc.fEmitsPointSize = random.nextF() > .5f; 74 pdesc.fColorInput = random_int(&random, ProgramDesc::kColorInputCnt); 75 pdesc.fCoverageInput = random_int(&random, ProgramDesc::kColorInputCnt); 77 pdesc.fColorFilterXfermode = random_int(&random, SkXfermode::kCoeffModesCnt); 79 pdesc.fFirstCoverageStage = random_int(&random, GrDrawState::kNumStages); 81 pdesc.fVertexLayout |= random_bool(&random) ? 87 random_bool(&random); [all...] |
/external/v8/src/ |
H A D | math.js | 33 var $random = MathRandom; 269 "random", MathRandom,
|
/external/webkit/Tools/CygwinDownloader/ |
H A D | cygwin-downloader.py | 3 import os, random, sys, time, urllib namespace 17 if quiet or random.random() > 0.5: 42 package_mirror_url = mirror_servers[random.choice(range(len(mirror_servers)))]
|
/external/webkit/Tools/Scripts/webkitpy/tool/bot/ |
H A D | irc_command.py | 29 import random namespace 110 return random.choice(quips)
|
H A D | sheriffircbot_unittest.py | 30 import random namespace 49 random.seed(23324)
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
H A D | CipherSpiTest.java | 254 protected void engineInit(int opmode, Key key, SecureRandom random) argument 259 AlgorithmParameterSpec params, SecureRandom random) 264 SecureRandom random) throws InvalidKeyException, 258 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument 263 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
|
/external/apache-http/src/org/apache/http/conn/ssl/ |
H A D | SSLSocketFactory.java | 176 final SecureRandom random, 193 this.sslcontext.init(keymanagers, trustmanagers, random); 171 SSLSocketFactory( String algorithm, final KeyStore keystore, final String keystorePassword, final KeyStore truststore, final SecureRandom random, final HostNameResolver nameResolver) argument
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
H A D | CMSSignedDataGenerator.java | 94 SecureRandom random, 116 signerBuilder = new JcaContentSignerBuilder(signatureName).setSecureRandom(random); 93 toSignerInfoGenerator( SecureRandom random, Provider sigProvider, boolean addDefaultAttributes) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
H A D | DSAParametersGenerator.java | 23 private SecureRandom random; field in class:DSAParametersGenerator 34 * @param random random byte source. 39 SecureRandom random) 41 init(size, getDefaultN(size), certainty, random); 49 SecureRandom random) 57 this.random = random; 87 random.nextBytes(seed); 140 BigInteger g = calculateGenerator_FIPS186_2(p, q, random); 36 init( int size, int certainty, SecureRandom random) argument 45 init( int L, int N, int certainty, SecureRandom random) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
H A D | DSASigner.java | 44 private SecureRandom random; field in class:DSASigner 98 SecureRandom random) 101 this.random = random; 120 if (random != null) 122 param = new ParametersWithRandom(param, random); 96 engineInitSign( PrivateKey privateKey, SecureRandom random) argument
|