MCPcopy Index your code
hub / github.com/CDSecLab/MJXT / hash64

Method hash64

src/main/java/utils/Hash.java:15–21  ·  view source on GitHub ↗
(long x, long seed)

Source from the content-addressed store, hash-verified

13 }
14
15 public static long hash64(long x, long seed) {
16 x += seed;
17 x = (x ^ (x >>> 33)) * 0xff51afd7ed558ccdL;
18 x = (x ^ (x >>> 33)) * 0xc4ceb9fe1a85ec53L;
19 x = x ^ (x >>> 33);
20 return x;
21 }
22
23 public static long randomSeed() {
24 return random.nextLong();

Callers 4

searchMethod · 0.95
getHashMethod · 0.95
addMethod · 0.95
mayContainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected