mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 08:49:03 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user