summaryrefslogtreecommitdiff
path: root/sys/src/libmp/test.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-04-10 02:35:01 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-04-10 02:35:01 +0200
commit3ba1197aeb382e1750cbb0f2567794bd4482e1e2 (patch)
tree446c21efad26cd5f497c212e86392ac00036e099 /sys/src/libmp/test.c
parentb47c096c8ceb7b96820ec886146a674eb9ad2c7b (diff)
libmp: make includes consistent, make test program compile under ape (work in progress)
Diffstat (limited to 'sys/src/libmp/test.c')
-rw-r--r--sys/src/libmp/test.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/src/libmp/test.c b/sys/src/libmp/test.c
index 5b81bf9f2..47033a5dd 100644
--- a/sys/src/libmp/test.c
+++ b/sys/src/libmp/test.c
@@ -5,26 +5,11 @@
int loops = 1;
-long randomreg;
-
-void
-srand(long seed)
-{
- randomreg = seed;
-}
-
-long
-lrand(void)
-{
- randomreg = randomreg*104381 + 81761;
- return randomreg;
-}
-
void
prng(uchar *p, int n)
{
while(n-- > 0)
- *p++ = lrand();
+ *p++ = rand();
}
void