MCPcopy Create free account
hub / github.com/questdb/questdb / nextPositiveLong

Method nextPositiveLong

core/src/main/java/io/questdb/std/Rnd.java:349–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347 }
348
349 public long nextPositiveLong() {
350 long l = nextLong();
351 return l > 0 ? l : (l == Long.MIN_VALUE ? Long.MAX_VALUE : -l);
352 }
353
354 public short nextShort(short boundary) {
355 return (short) (nextShort() % boundary);

Callers 15

testQueryTimeoutMethod · 0.95
testBinarySearchFuzzMethod · 0.95
testIncOperationsMethod · 0.95
testFuzzMethod · 0.95
testIncOperationsMethod · 0.95
testFuzzMethod · 0.95
testFuzzMethod · 0.95
testIncOperationsMethod · 0.95
testFuzzMethod · 0.95
testFuzzMethod · 0.95
testFuzzMethod · 0.95

Calls 1

nextLongMethod · 0.95

Tested by 15

testQueryTimeoutMethod · 0.76
testBinarySearchFuzzMethod · 0.76
testIncOperationsMethod · 0.76
testFuzzMethod · 0.76
testIncOperationsMethod · 0.76
testFuzzMethod · 0.76
testFuzzMethod · 0.76
testIncOperationsMethod · 0.76
testFuzzMethod · 0.76
testFuzzMethod · 0.76
testFuzzMethod · 0.76