add file.mount(...) and file.unmount(...)

This commit is contained in:
MihailRis
2025-03-17 23:01:44 +03:00
parent 6286096b57
commit e8153f3393
4 changed files with 68 additions and 10 deletions
+6
View File
@@ -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();
}