Home
last modified time | relevance | path

Searched refs:RND (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/io/FileInputStream/
DReadXBytes.java47 private static final Random RND = RandomFactory.getRandom(); field in ReadXBytes
82 int size = 1 + RND.nextInt(MAX_FILE_SIZE); in main()
85 RND.nextBytes(bytes); in main()
91 int pos = RND.nextInt(size); in main()
92 int len = RND.nextInt(size - pos); in main()
105 int pos = RND.nextInt(size); in main()
/libcore/ojluni/src/test/java/nio/Buffer/
DBulkPutBuffer.java63 static final MyRandom RND = new MyRandom(SEED); field in BulkPutBuffer
216 RND.nextBytes(bytes); in create()
228 array[i] = RND.nextChar(); in create()
234 putAbs.invoke(buf, i, nextType.invoke(RND)); in create()
374 int cap = RND.nextInt(MAX_CAPACITY); in testSelf()
377 int lowerOffset = RND.nextInt(1 + cap/10); in testSelf()
378 int lowerLength = RND.nextInt(1 + cap/2); in testSelf()
391 int middleOffset = RND.nextInt(1 + cap/2); in testSelf()
420 int cap = Math.max(4, RND.nextInt(MAX_CAPACITY)); in testPairs()
424 int pos = RND.nextInt(Math.max(1, cap2)); in testPairs()
[all …]