Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WolfireGames/overgrowth
/ GenerateData
Method
GenerateData
Source/UnitTests/block_allocator_tester.cpp:165–172 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
163
}
164
165
void GenerateData() {
166
ref_data.resize(count);
167
for (uint32_t i = 0; i < count; i++) {
168
uint8_t v = RangedRandomInt(0, 255);
169
ptr[i] = v;
170
ref_data[i] = v;
171
}
172
}
173
};
174
175
template <>
Callers
1
test<5>
Method · 0.80
Calls
2
RangedRandomInt
Function · 0.85
resize
Method · 0.45
Tested by
no test coverage detected