X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Frand.c;h=d0a1dc816e697a43f97632eb8cc7a929a428ffcb;hb=HEAD;hp=11df421376db55311b1ddd1fb4c4a9f5be43ce96;hpb=6998354505e9112ed772da779507af6a61055c06;p=bertos.git diff --git a/mware/rand.c b/mware/rand.c deleted file mode 100755 index 11df4213..00000000 --- a/mware/rand.c +++ /dev/null @@ -1,24 +0,0 @@ -/** - * \file - * - * - * \brief Very simple rand() algorithm. - * - * \version $Id$ - * \author Bernardo Innocenti - */ - -/* This would really belong to libc */ -static int rand(void) -{ - static unsigned long seed; - - /* Randomize seed */ - seed = (seed ^ 0x4BAD5A39UL) + 6513973UL; - - return (int)(seed>>16); -}