From 3e01f8d47f8677c4faead6c08fbbfcf42810b1ba Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 5 Jun 2001 15:20:49 +0000 Subject: i need working random suite for ppp with dietlibc --- mdk-stage1/dietlibc/lib/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdk-stage1/dietlibc/lib/random.c') 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)); } -- cgit v1.2.1