mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
37 lines
900 B
C++
37 lines
900 B
C++
#pragma once
|
|
#include "MiniEngine.h"
|
|
#include <string>
|
|
|
|
namespace MiniEngine
|
|
{
|
|
|
|
namespace Test
|
|
{
|
|
|
|
std::string GetMD5(unsigned char* buffer,unsigned int bufferLen);
|
|
void GetMD5Raw(unsigned char* buffer,unsigned int bufferLen,unsigned char* outbuff);
|
|
|
|
int GetCRC32(unsigned char* buffer,unsigned int bufferLen,uint32_t& out_CRCResult);
|
|
|
|
int CompareSurface(const Surface& surface1,const Surface& surface2,int allowableError);
|
|
|
|
class UniRandom
|
|
{
|
|
public:
|
|
/// Default Constructor is based on system current time.
|
|
UniRandom();
|
|
UniRandom(unsigned int A,unsigned int B);
|
|
uint32_t get();
|
|
private:
|
|
struct _impl;
|
|
std::shared_ptr<_impl> _sp;
|
|
};
|
|
|
|
/// Not Implied : SDLTest_RandomAsciiString,SDLTest_RandomAsciiStringOfSize cause link error.
|
|
std::string GetRandomString();
|
|
std::string GetRandomString(size_t length);
|
|
|
|
}/// End of namespace MiniEngine::Test
|
|
|
|
}/// End of namespace MiniEngine
|