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:
parent
06d954479b
commit
12678040d4
1 changed files with 7 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue