HomeSort by relevance Sort by last modified time
    Searched refs:rng (Results 1 - 25 of 47) sorted by null

1 2

  /external/dropbear/libtommath/mtest/
mtest.c 42 FILE *rng; variable
49 size = 1 + ((fgetc(rng)<<8) + fgetc(rng)) % 101;
50 buf[0] = (fgetc(rng)&1)?1:0;
51 fread(buf+1, 1, size, rng);
52 while (buf[1] == 0) buf[1] = fgetc(rng);
61 size = 10 + ((fgetc(rng)<<8) + fgetc(rng)) % 101;
62 buf[0] = (fgetc(rng)&1)?1:0;
63 fread(buf+1, 1, size, rng);
    [all...]
  /external/srtp/
Android.mk 20 crypto/rng/rand_source.c \
21 crypto/rng/prng.c \
22 crypto/rng/ctr_prng.c \
Makefile 89 rng = crypto/rng/$(RNG_OBJS) crypto/rng/prng.o crypto/rng/ctr_prng.o macro
94 crypto/kernel/key.o $(rng) $(err) # $(ust)
  /external/srtp/crypto/
Makefile 78 rng = rng/$(RNG_OBJS) rng/rand_source.o rng/prng.o rng/ctr_prng.o macro
83 kernel/key.o $(rng) $(err)
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/parallel/
random_shuffle.h 111 * @param rng Random number generator to use.
115 random_number_pow2(int logp, RandomNumberGenerator& rng)
116 { return rng.genrand_bits(logp); }
145 random_number rng(d->seed);
150 bin_index oracle = random_number_pow2(num_bits, rng);
229 sequential_random_shuffle(begin, end, rng);
254 * @param rng Random number generator to use.
263 RandomNumberGenerator& rng)
322 return sequential_random_shuffle(begin, end, rng);
368 pus[i].seed = rng(std::numeric_limits<uint32>::max())
    [all...]
balanced_quicksort.h 256 random_number rng(iam + 1);
274 RandomAccessIterator pivot_pos = begin + rng(n);
378 victim = rng(num_threads);
partition.h 340 random_number rng; local
351 RandomAccessIterator pivot_pos = begin + rng(n);
  /development/tools/axl/
chewie.py 139 rng = range(connectionCount)
142 drawn = [False for x in rng]
151 # pylab.plot([vals[-1][6]], rng)
153 print opened, rng
154 pylab.plot(opened, rng, 'ro')
  /hardware/invensense/mlsdk/platform/include/linux/
mpu.h 207 static inline long range_fixedpoint_to_long_mg(struct fix_pnt_range rng)
209 return (long)(rng.mantissa * 1000 + rng.fraction / 10);
  /external/opencv/ml/src/
mlestimate.cpp 416 CvRNG rng;
422 rng = cvRNG(cvGetTickCount());
423 cvRandInt (&rng); cvRandInt (&rng); cvRandInt (&rng); cvRandInt (&rng);
448 if (estimateParams && ((CvCrossValidationParams*)estimateParams)->rng)
449 prng = ((CvCrossValidationParams*)estimateParams)->rng;
451 prng = &rng;
mlrtrees.cpp 108 CvRNG* rng = forest->get_rng(); local
118 int i1 = cvRandInt(rng) % var_count;
119 int i2 = cvRandInt(rng) % var_count;
193 rng = cvRNG(0xffffffff);
228 return &rng;
367 int idx = cvRandInt( &rng ) % nsamples;
447 i1 = cvRandInt( &rng ) % nsamples;
448 i2 = cvRandInt( &rng ) % nsamples;
643 rng = CvRNG( -1 );
mlcnn.cpp 235 CvRNG rng = cvRNG(-1);
281 worst_img_idx = cvRandInt(&rng) % n_images;
669 CvRNG rng = cvRNG( 0xFFFFFFFF );
670 cvRandArr( &rng, layer->weights, CV_RAND_UNI, cvRealScalar(-1), cvRealScalar(1) );
744 CvRNG rng = cvRNG( 0xFFFFFFFF );
745 cvRandArr( &rng, layer->weights, CV_RAND_UNI, cvRealScalar(-1), cvRealScalar(1) );
794 CvRNG rng = cvRNG( 0xFFFFFFFF );
795 cvRandArr( &rng, layer->weights, CV_RAND_UNI, cvRealScalar(-1), cvRealScalar(1) );
    [all...]
  /frameworks/base/core/java/android/content/pm/
VerifierDeviceIdentity.java 85 * @param rng random number generator to retrieve the next long from
89 static VerifierDeviceIdentity generate(Random rng) {
90 long identity = rng.nextLong();
  /libcore/luni/src/main/java/java/util/
UUID.java 45 private static SecureRandom rng; field in class:UUID
126 if (rng == null) {
127 rng = new SecureRandom();
130 rng.nextBytes(data);
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
serial.h 149 int cts, dsr, rng, dcd; member in struct:serial_icounter_struct
  /frameworks/base/core/tests/coretests/src/android/app/
DownloadManagerBaseTest.java 107 * Creates RNG with self-generated seed value.
116 * Creats RNG with given initial seed value
122 Log.i(LOG_TAG, "Seeding RNG with value: " + seed);
304 * Helper to generate a random blob of bytes using a given RNG.
309 * @param rng (optional) The RNG to use; pass null to use
312 protected byte[] generateData(int size, DataType type, Random rng) {
324 if (rng == null) {
325 rng = new LoggingRng();
329 result[i] = (byte) (min + rng.nextInt(max - min + 1))
618 Random rng = new LoggingRng(); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
Base64Test.java 315 Random rng = new Random(32176L); local
355 int l = writeLengths[rng.nextInt(writeLengths.length)];
394 int l = writeLengths[rng.nextInt(writeLengths.length)];
430 Random rng = new Random(32176L); local
470 int l = writeLengths[rng.nextInt(writeLengths.length)];
513 int l = writeLengths[rng.nextInt(writeLengths.length)];
  /frameworks/base/telephony/java/com/android/internal/telephony/
RetryManager.java 108 private Random rng = new Random(); field in class:RetryManager
384 return rng.nextInt(randomTime);
  /external/opencv/cv/src/
cvlinefit.cpp 352 CvRNG rng = cvRNG(-1);
400 j = cvRandInt(&rng) % count;
501 CvRNG rng = cvRNG(-1);
550 j = cvRandInt(&rng) % count;
  /external/opencv/cxcore/src/
cxrand.cpp 442 cvRandArr( CvRNG* rng, CvArr* arr, int disttype, CvScalar param1, CvScalar param2 )
471 if( !rng )
472 CV_ERROR( CV_StsNullPtr, "Null pointer to RNG state" );
586 IPPI_CALL( func( mat->data.ptr, mat_step, size, rng, param ));
592 IPPI_CALL( func( iterator->ptr[0], CV_STUB_STEP, size, rng, param ));
cxutils.cpp 60 CvRNG rng = CvRNG(-1); local
100 labels->data.i[i] = cvRandInt(&rng) % cluster_count;
149 i = cvRandInt( &rng ) % sample_count;
223 i = cvRandInt(&rng) % sample_count;
810 CV_IMPL void cvRandShuffle( CvArr* arr, CvRNG* rng, double iter_factor )
830 if( !rng )
831 rng = &_rng;
852 cvRandArr( rng, &_pair_buf, CV_RAND_UNI, cvRealScalar(0), cvRealScalar(arr_size) );
    [all...]
  /frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/
DownloadManagerBaseTest.java 112 * Creates RNG with self-generated seed value.
121 * Creats RNG with given initial seed value
127 Log.i(LOG_TAG, "Seeding RNG with value: " + seed);
286 * Helper to generate a random blob of bytes using a given RNG.
291 * @param rng (optional) The RNG to use; pass null to use
294 private byte[] generateData(int size, DataType type, Random rng) {
306 if (rng == null) {
307 rng = new LoggingRng();
311 result[i] = (byte) (min + rng.nextInt(max - min + 1))
    [all...]
  /external/opencv/cxcore/include/
cxtypes.h 305 CvRNG rng = seed ? (uint64)seed : (uint64)(int64)-1; variable
306 return rng;
310 CV_INLINE unsigned cvRandInt( CvRNG* rng )
312 uint64 temp = *rng;
314 *rng = temp;
319 CV_INLINE double cvRandReal( CvRNG* rng )
321 return cvRandInt(rng)*2.3283064365386962890625e-10 /* 2^-32 */;
    [all...]
  /external/chromium/third_party/libjingle/source/talk/
libjingle.scons 43 "third_party/srtp/crypto/rng/ctr_prng.c",
44 "third_party/srtp/crypto/rng/rand_source.c",
  /external/webkit/Source/WebKit/qt/WebCoreSupport/
DumpRenderTreeSupportQt.h 156 static QString plainText(const QVariant& rng);

Completed in 4562 milliseconds

1 2