File tree 2 files changed +3
-11
lines changed
server/src/main/java/org/elasticsearch/common/hash
test/framework/src/main/java/org/elasticsearch/test
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ static class IntermediateResult {
81
81
private static long C1 = 0x87c37b91114253d5L ;
82
82
private static long C2 = 0x4cf5ad432745937fL ;
83
83
84
- protected static long fmix (long k ) {
84
+ public static long fmix (long k ) {
85
85
k ^= k >>> 33 ;
86
86
k *= 0xff51afd7ed558ccdL ;
87
87
k ^= k >>> 33 ;
Original file line number Diff line number Diff line change 12
12
import com .carrotsearch .randomizedtesting .SeedDecorator ;
13
13
14
14
import org .elasticsearch .common .Randomness ;
15
+ import org .elasticsearch .common .hash .MurmurHash3 ;
15
16
16
17
import java .util .concurrent .atomic .AtomicLong ;
17
18
@@ -59,15 +60,6 @@ public long decorate(long seed) {
59
60
}
60
61
61
62
public static void next () {
62
- mix .updateAndGet (MixWithIncrement ::fmix64 );
63
- }
64
-
65
- private static long fmix64 (long k ) {
66
- k ^= k >>> 33 ;
67
- k *= -49064778989728563L ;
68
- k ^= k >>> 33 ;
69
- k *= -4265267296055464877L ;
70
- k ^= k >>> 33 ;
71
- return k ;
63
+ mix .updateAndGet (MurmurHash3 ::fmix );
72
64
}
73
65
}
You can’t perform that action at this time.
0 commit comments