many small changes

added function to fill memory with random bytes (cleaning some code with
that). Removed public build #ifdefs since 3dsguy apparently uploaded the
entire source with all "private" things.
This commit is contained in:
applestash
2014-06-28 18:38:52 +10:00
parent df5c7f500c
commit 65038633e4
12 changed files with 39 additions and 70 deletions
+12
View File
@@ -44,6 +44,18 @@ int CopyData(u8 **dest, u8 *source, u64 size)
return 0;
}
void rndset(void *ptr, u64 num)
{
u8 *tmp = (u8*)ptr;
for(u64 i = 0; i < num ; i++)
tmp[i] = u8GetRand();
}
void clrmem(void *ptr, u64 num)
{
memset(ptr,0,num);
}
// Misc
u64 align(u64 value, u64 alignment)
{