mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add file.mount(...) and file.unmount(...)
This commit is contained in:
parent
6286096b57
commit
e8153f3393
4 changed files with 68 additions and 10 deletions
|
|
@ -37,6 +37,12 @@ namespace util {
|
|||
return static_cast<int>(seed);
|
||||
}
|
||||
|
||||
void rand(unsigned char* dst, size_t n) {
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
dst[i] = rand();
|
||||
}
|
||||
}
|
||||
|
||||
int32_t rand32() {
|
||||
return (rand() << 16) | rand();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue