summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-06-05 15:20:49 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-06-05 15:20:49 +0000
commit3e01f8d47f8677c4faead6c08fbbfcf42810b1ba (patch)
tree706f4a21058260dae4c95e92f9903ba36462a6c9 /mdk-stage1
parentd8eafdaf6dcc25efbf046f5d3c872a2f35fd7510 (diff)
downloaddrakx-backup-do-not-use-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar
drakx-backup-do-not-use-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar.gz
drakx-backup-do-not-use-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar.bz2
drakx-backup-do-not-use-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar.xz
drakx-backup-do-not-use-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.zip
i need working random suite for ppp with dietlibc
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/dietlibc/include/stdlib.h3
-rw-r--r--mdk-stage1/dietlibc/lib/random.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/mdk-stage1/dietlibc/include/stdlib.h b/mdk-stage1/dietlibc/include/stdlib.h
index 1ec15e145..6a13a48ff 100644
--- a/mdk-stage1/dietlibc/include/stdlib.h
+++ b/mdk-stage1/dietlibc/include/stdlib.h
@@ -61,4 +61,7 @@ char *realpath(const char *path, char *resolved_path) __THROW;
int abs(int j) __THROW;
+long int random(void) __THROW;
+void srandom(unsigned int seed) __THROW;
+
#endif
diff --git a/mdk-stage1/dietlibc/lib/random.c b/mdk-stage1/dietlibc/lib/random.c
index 02d1e1004..e7785c455 100644
--- a/mdk-stage1/dietlibc/lib/random.c
+++ b/mdk-stage1/dietlibc/lib/random.c
@@ -2,7 +2,7 @@
static unsigned int seed=1;
-int random() {
+long int random() {
return ((seed = seed * 1103515245 + 12345) % ((unsigned int)RAND_MAX + 1));
}