/external/dropbear/libtommath/mtest/ |
D | mtest.c | 42 FILE *rng; variable 49 size = 1 + ((fgetc(rng)<<8) + fgetc(rng)) % 101; in rand_num() 50 buf[0] = (fgetc(rng)&1)?1:0; in rand_num() 51 fread(buf+1, 1, size, rng); in rand_num() 52 while (buf[1] == 0) buf[1] = fgetc(rng); in rand_num() 61 size = 10 + ((fgetc(rng)<<8) + fgetc(rng)) % 101; in rand_num2() 62 buf[0] = (fgetc(rng)&1)?1:0; in rand_num2() 63 fread(buf+1, 1, size, rng); in rand_num2() 64 while (buf[1] == 0) buf[1] = fgetc(rng); in rand_num2() 101 rng = fopen("/dev/urandom", "rb"); in main() [all …]
|
/external/srtp/crypto/ |
D | Makefile.in | 78 rng = rng/$(RNG_OBJS) rng/rand_source.o rng/prng.o rng/ctr_prng.o 83 kernel/key.o $(rng) $(err)
|
D | Makefile | 78 rng = rng/$(RNG_OBJS) rng/rand_source.o rng/prng.o rng/ctr_prng.o macro 83 kernel/key.o $(rng) $(err)
|
/external/srtp/ |
D | Android.mk | 20 crypto/rng/rand_source.c \ 21 crypto/rng/prng.c \ 22 crypto/rng/ctr_prng.c \
|
D | 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)
|
D | Makefile.in | 91 rng = crypto/rng/$(RNG_OBJS) crypto/rng/prng.o crypto/rng/ctr_prng.o 96 crypto/kernel/key.o $(rng) $(err) # $(ust)
|
D | Changes | 33 Changed /dev/random (in configure.in and crypto/rng/rand_source.c) to 113 crypto/rng/rand_source.c and include/rand_source.h.
|
/external/opencv/ml/src/ |
D | 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;
|
D | mlrtrees.cpp | 108 CvRNG* rng = forest->get_rng(); in find_best_split() local 118 int i1 = cvRandInt(rng) % var_count; in find_best_split() 119 int i2 = cvRandInt(rng) % var_count; in find_best_split() 193 rng = cvRNG(0xffffffff); in CvRTrees() 228 return &rng; in get_rng() 367 int idx = cvRandInt( &rng ) % nsamples; in grow_forest() 447 i1 = cvRandInt( &rng ) % nsamples; in grow_forest() 448 i2 = cvRandInt( &rng ) % nsamples; in grow_forest() 643 rng = CvRNG( -1 ); in read()
|
D | 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) );
|
D | mlem.cpp | 584 CvRNG rng = cvRNG(-1); in kmeans() local 608 cvRandShuffle( labels, &rng ); in kmeans() 705 i = cvRandInt( &rng ) % nsamples; in kmeans() 741 i = cvRandInt(&rng) % nsamples; in kmeans()
|
D | ml_inner_functions.cpp | 158 CV_IMPL void cvRandMVNormal( CvMat* mean, CvMat* cov, CvMat* sample, CvRNG* rng ) in cvRandMVNormal() argument 163 CvRNG state = rng ? *rng : cvRNG(time(0)); in cvRandMVNormal() 272 CvRNG rng; in icvGenerateRandomClusterCenters() local 303 rng = cvRNG(seed); in icvGenerateRandomClusterCenters() 309 … CV_CALL(cvRandArr (&rng, ¢ers_comp, CV_RAND_UNI, cvScalarAll(minVal), cvScalarAll(maxVal))); in icvGenerateRandomClusterCenters()
|
D | mlann_mlp.cpp | 98 rng = cvRNG(-1); in CvANN_MLP() 111 rng = cvRNG(-1); in CvANN_MLP() 193 val = cvRandReal(&rng)*2-1.; in init_weights() 950 j = (unsigned)cvRandInt(&rng) % count; in train_backprop() 951 k = (unsigned)cvRandInt(&rng) % count; in train_backprop()
|
/external/opencv/cxcore/src/ |
D | cxrand.cpp | 442 cvRandArr( CvRNG* rng, CvArr* arr, int disttype, CvScalar param1, CvScalar param2 ) in cvRandArr() argument 471 if( !rng ) in cvRandArr() 586 IPPI_CALL( func( mat->data.ptr, mat_step, size, rng, param )); in cvRandArr() 592 IPPI_CALL( func( iterator->ptr[0], CV_STUB_STEP, size, rng, param )); in cvRandArr()
|
D | cxutils.cpp | 60 CvRNG rng = CvRNG(-1); in cvKMeans2() local 100 labels->data.i[i] = cvRandInt(&rng) % cluster_count; in cvKMeans2() 149 i = cvRandInt( &rng ) % sample_count; in cvKMeans2() 223 i = cvRandInt(&rng) % sample_count; in cvKMeans2() 810 CV_IMPL void cvRandShuffle( CvArr* arr, CvRNG* rng, double iter_factor ) in cvRandShuffle() argument 830 if( !rng ) in cvRandShuffle() 831 rng = &_rng; in cvRandShuffle() 852 cvRandArr( rng, &_pair_buf, CV_RAND_UNI, cvRealScalar(0), cvRealScalar(arr_size) ); in cvRandShuffle()
|
/external/opencv/cxcore/include/ |
D | cxtypes.h | 305 CvRNG rng = seed ? (uint64)seed : (uint64)(int64)-1; variable 306 return rng; 310 CV_INLINE unsigned cvRandInt( CvRNG* rng ) in cvRandInt() argument 312 uint64 temp = *rng; in cvRandInt() 314 *rng = temp; in cvRandInt() 319 CV_INLINE double cvRandReal( CvRNG* rng ) in cvRandReal() argument 321 return cvRandInt(rng)*2.3283064365386962890625e-10 /* 2^-32 */; in cvRandReal()
|
/external/opencv/cv/src/ |
D | cvlinefit.cpp | 352 CvRNG rng = cvRNG(-1); in icvFitLine2D() local 400 j = cvRandInt(&rng) % count; in icvFitLine2D() 501 CvRNG rng = cvRNG(-1); in icvFitLine3D() local 550 j = cvRandInt(&rng) % count; in icvFitLine3D()
|
/external/chromium/third_party/libjingle/source/talk/ |
D | libjingle.scons | 43 "third_party/srtp/crypto/rng/ctr_prng.c", 44 "third_party/srtp/crypto/rng/rand_source.c",
|
/external/opencv/ml/include/ |
D | ml.h | 827 CvRNG rng; member 1009 CvRNG rng; variable 1241 CvRNG rng; variable 1464 CvRNG* rng 1538 CvRNG* rng CV_DEFAULT(0) );
|
/external/webkit/Source/WebKit/qt/WebCoreSupport/ |
D | DumpRenderTreeSupportQt.h | 156 static QString plainText(const QVariant& rng); in Q_DECLARE_METATYPE()
|
/external/kernel-headers/original/linux/ |
D | serial_core.h | 200 __u32 rng; member
|
/external/webkit/PerformanceTests/SunSpider/tests/v8-v4/ |
D | v8-crypto.js | 1478 var rng = new SecureRandom(); 1482 while(x[0] == 0) rng.nextBytes(x); 1587 var rng = new SecureRandom(); 1593 this.p = new BigInteger(B-qs,1,rng); 1597 this.q = new BigInteger(qs,1,rng);
|
/external/v8/benchmarks/ |
D | crypto.js | 1486 var rng = new SecureRandom(); 1490 while(x[0] == 0) rng.nextBytes(x); 1595 var rng = new SecureRandom(); 1601 this.p = new BigInteger(B-qs,1,rng); 1605 this.q = new BigInteger(qs,1,rng);
|
/external/webkit/PerformanceTests/SunSpider/tests/v8-v6/ |
D | v8-crypto.js | 1478 var rng = new SecureRandom(); 1482 while(x[0] == 0) rng.nextBytes(x); 1587 var rng = new SecureRandom(); 1593 this.p = new BigInteger(B-qs,1,rng); 1597 this.q = new BigInteger(qs,1,rng);
|
/external/webkit/PerformanceTests/SunSpider/tests/v8-v5/ |
D | v8-crypto.js | 1478 var rng = new SecureRandom(); 1482 while(x[0] == 0) rng.nextBytes(x); 1587 var rng = new SecureRandom(); 1593 this.p = new BigInteger(B-qs,1,rng); 1597 this.q = new BigInteger(qs,1,rng);
|