Home
last modified time | relevance | path

Searched refs:rng (Results 1 – 25 of 41) sorted by relevance

12

/external/dropbear/libtommath/mtest/
Dmtest.c42 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/
DMakefile.in78 rng = rng/$(RNG_OBJS) rng/rand_source.o rng/prng.o rng/ctr_prng.o
83 kernel/key.o $(rng) $(err)
DMakefile78 rng = rng/$(RNG_OBJS) rng/rand_source.o rng/prng.o rng/ctr_prng.o macro
83 kernel/key.o $(rng) $(err)
/external/srtp/
DAndroid.mk20 crypto/rng/rand_source.c \
21 crypto/rng/prng.c \
22 crypto/rng/ctr_prng.c \
DMakefile89 rng = crypto/rng/$(RNG_OBJS) crypto/rng/prng.o crypto/rng/ctr_prng.o macro
94 crypto/kernel/key.o $(rng) $(err) # $(ust)
DMakefile.in91 rng = crypto/rng/$(RNG_OBJS) crypto/rng/prng.o crypto/rng/ctr_prng.o
96 crypto/kernel/key.o $(rng) $(err) # $(ust)
DChanges33 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/
Dmlestimate.cpp416 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;
Dmlrtrees.cpp108 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()
Dmlcnn.cpp235 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) );
Dmlem.cpp584 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()
Dml_inner_functions.cpp158 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, &centers_comp, CV_RAND_UNI, cvScalarAll(minVal), cvScalarAll(maxVal))); in icvGenerateRandomClusterCenters()
Dmlann_mlp.cpp98 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/
Dcxrand.cpp442 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()
Dcxutils.cpp60 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/
Dcxtypes.h305 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/
Dcvlinefit.cpp352 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/
Dlibjingle.scons43 "third_party/srtp/crypto/rng/ctr_prng.c",
44 "third_party/srtp/crypto/rng/rand_source.c",
/external/opencv/ml/include/
Dml.h827 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/
DDumpRenderTreeSupportQt.h156 static QString plainText(const QVariant& rng); in Q_DECLARE_METATYPE()
/external/kernel-headers/original/linux/
Dserial_core.h200 __u32 rng; member
/external/webkit/PerformanceTests/SunSpider/tests/v8-v4/
Dv8-crypto.js1478 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/
Dcrypto.js1486 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/
Dv8-crypto.js1478 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/
Dv8-crypto.js1478 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);

12