MCPcopy Create free account
hub / github.com/ReadyTalk/avian / setSeed

Method setSeed

classpath/java/util/Random.java:36–38  ·  view source on GitHub ↗
(long seed)

Source from the content-addressed store, hash-verified

34 }
35
36 public void setSeed(long seed) {
37 this.seed = (seed ^ Mask) & ((1L << 48) - 1);
38 }
39
40 protected int next(int bits) {
41 seed = ((seed * Mask) + 0xBL) & ((1L << 48) - 1);

Callers 1

RandomMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected