mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-11 23:00:18 -04:00
DSPCodeUtil: remove GenRandomCode
It was only used in a specific DSPTool test, which was removed because non-deterministic tests aren't really useful.
This commit is contained in:
@@ -100,15 +100,6 @@ bool Compare(const std::vector<u16>& code1, const std::vector<u16>& code2)
|
||||
return code1.size() == code2.size() && code1.size() == count_equal;
|
||||
}
|
||||
|
||||
void GenRandomCode(u32 size, std::vector<u16>& code)
|
||||
{
|
||||
code.resize(size);
|
||||
for (u32 i = 0; i < size; i++)
|
||||
{
|
||||
code[i] = rand() ^ (rand() << 8);
|
||||
}
|
||||
}
|
||||
|
||||
void CodeToHeader(const std::vector<u16>& code, std::string _filename, const char* name,
|
||||
std::string& header)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user