MCPcopy Create free account
hub / github.com/MaxBittker/rs-sdk / nextLong

Method nextLong

server/engine/src/util/JavaRandom.ts:106–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 nextLong() {
107 const msb = BigInt(next_signed(32));
108 const lsb = BigInt(next_signed(32));
109 const p2_32n = BigInt(p2_32);
110 return msb * p2_32n + lsb;
111 }
112
113 nextBoolean() {
114 return next(1) != 0;

Callers

nothing calls this directly

Calls 1

next_signedFunction · 0.70

Tested by

no test coverage detected