Searched defs:random (Results 51 - 75 of 161) sorted by relevance

1234567

/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DMyKeyPairGenerator1.java61 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 DJcaContentSignerBuilder.java25 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 DPKCS1Encoding.java32 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 DOAEPEncoding.java25 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 DKeyAgreementSpi.java165 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 DKeyPairGeneratorSpi.java51 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 DDES.java133 // 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 DABITestGen.py4 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 DConcurrentHashMultisetBasherTest.java38 * 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 DLine.java190 * <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 DRing.java167 * <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 DHillHeightMap.java39 * 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 DMidpointDisplacementHeightMap.java49 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 DGrEffect.cpp24 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 DGrSimpleTextureEffect.cpp70 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 DGLProgramsTest.cpp34 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 Dmath.js33 var $random = MathRandom;
269 "random", MathRandom,
/external/webkit/Tools/CygwinDownloader/
H A Dcygwin-downloader.py3 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 Dirc_command.py29 import random namespace
110 return random.choice(quips)
H A Dsheriffircbot_unittest.py30 import random namespace
49 random.seed(23324)
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
H A DCipherSpiTest.java254 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 DSSLSocketFactory.java176 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 DCMSSignedDataGenerator.java94 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 DDSAParametersGenerator.java23 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 DDSASigner.java44 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

Completed in 619 milliseconds

1234567