Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ randi32
Method
randi32
source/core/StarRandom.cpp:70–72 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
68
}
69
70
int32_t RandomSource::randi32() {
71
return (int32_t)(randu32());
72
}
73
74
int64_t RandomSource::randi64() {
75
return (int64_t)(randu64());
Callers
3
produceChunk
Method · 0.80
randi32
Function · 0.80
TEST
Function · 0.80
Calls
1
randu32
Function · 0.85
Tested by
1
TEST
Function · 0.64