]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/rand.c
Removed old files.
[pdclib] / functions / stdlib / rand.c
diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c
deleted file mode 100644 (file)
index abe58f6..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ----------------------------------------------------------------------------
- * $Id$
- * ----------------------------------------------------------------------------
- * Public Domain C Library - http://pdclib.sourceforge.net
- * This code is Public Domain. Use, modify, and redistribute at will.
- * --------------------------------------------------------------------------*/
-
-int rand( void ) { /* TODO */ };
-void srand( unsigned int seed ) { /* TODO */ };
-
-/* PDPC code - unreviewed
-static unsigned long myseed = 1;
-
-void srand(unsigned int seed)
-{
-    myseed = seed;
-    return;
-}
-
-int rand(void)
-{
-    int ret;
-    
-    myseed = myseed * 1103515245UL + 12345;
-    ret = (int)((myseed >> 16) & 0x8fff);
-    return (ret);
-}
-*/