1
0
Fork 0
forked from fte/fteqw

Completely untested and not even attempted compiled MorphOS implementation of Sys_RandomBytes().

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3907 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2011-10-03 09:23:34 +00:00
parent 06d954479b
commit 12678040d4

View file

@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/random.h>
#include <dlfcn.h>
@ -472,7 +473,13 @@ qboolean Sys_GetDesktopParameters(int *width, int *height, int *bpp, int *refres
return false;
}
qboolean Sys_RandomBytes(qbyte *string, int len)
{
while(len--)
*string++ = RandomByte();
return true;
}
#ifdef MULTITHREAD
/* Everything here is stubbed because I don't know MorphOS */