Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaxBittker/rs-sdk
/ constructor
Method
constructor
server/engine/src/util/JavaRandom.ts:65–71 ·
view source on GitHub ↗
(seedval?: number)
Source
from the content-addressed store, hash-verified
63
64
class
JavaRandom {
65
constructor(seedval?: number) {
66
if
(typeof seedval ===
'undefined'
) {
67
seedval = Math.floor(Math.random() * p2_48);
68
}
69
70
this.setSeed(seedval);
71
}
72
73
//
74
// 53-bit safe version of
Callers
nothing calls this directly
Calls
1
setSeed
Method · 0.95
Tested by
no test coverage detected