mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-08 22:19:11 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -37,11 +37,11 @@ int Random::next(int bits)
|
||||
return (int)(seed >> (48 - bits));
|
||||
}
|
||||
|
||||
void Random::nextBytes(byte *bytes, unsigned int count)
|
||||
void Random::nextBytes(uint8_t *bytes, unsigned int count)
|
||||
{
|
||||
for(unsigned int i = 0; i < count; i++ )
|
||||
{
|
||||
bytes[i] = (byte)next(8);
|
||||
bytes[i] = (uint8_t)next(8);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user