From 12678040d4f1a4dceed0c192c83a8787db7869bb Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Mon, 3 Oct 2011 09:23:34 +0000 Subject: [PATCH] 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 --- engine/client/sys_morphos.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/client/sys_morphos.c b/engine/client/sys_morphos.c index d09239733..354a600bd 100755 --- a/engine/client/sys_morphos.c +++ b/engine/client/sys_morphos.c @@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include +#include #include @@ -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 */