mirror of
https://gitlab.com/Scribble/gdlenhanced.git
synced 2026-08-17 14:23:04 -04:00
22 lines
345 B
C++
22 lines
345 B
C++
|
|
#include <StdAfx.h>
|
|
|
|
typedef QTIsaac<(8), unsigned int> AC_Isaac;
|
|
|
|
void *AllocCrypto(uint32_t seed)
|
|
{
|
|
return new AC_Isaac(seed, seed, seed);
|
|
}
|
|
|
|
void FreeCrypto(void *pCryptoBuffer)
|
|
{
|
|
if (pCryptoBuffer)
|
|
{
|
|
delete ((AC_Isaac *)pCryptoBuffer);
|
|
}
|
|
}
|
|
|
|
uint32_t GetNextXORVal(void *pCryptoBuffer)
|
|
{
|
|
return ((AC_Isaac *)pCryptoBuffer)->rand();
|
|
}
|