mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 05:27:50 +00:00
* Fix Athena::utility::fillRandom
This commit is contained in:
@@ -64,8 +64,6 @@ BinaryWriter::BinaryWriter(const std::string& filename, std::function<void(int)>
|
||||
|
||||
BinaryWriter::~BinaryWriter()
|
||||
{
|
||||
if (isOpen())
|
||||
save();
|
||||
delete[] m_data;
|
||||
m_data = nullptr;
|
||||
}
|
||||
|
||||
@@ -77,9 +77,9 @@ bool isSystemBigEndian()
|
||||
return (*(atUint16*)test == 0xFEFF);
|
||||
}
|
||||
|
||||
void fillRandom(atUint8 * rndArea, atUint8 count)
|
||||
void fillRandom(atUint8 * rndArea, atUint64 count)
|
||||
{
|
||||
for(atUint16 i = 0; i < count; i++)
|
||||
for(atUint64 i = 0; i < count; i++)
|
||||
rndArea[i]=rand();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user