diff options
| author | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-05 15:20:49 +0000 |
|---|---|---|
| committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-05 15:20:49 +0000 |
| commit | 3e01f8d47f8677c4faead6c08fbbfcf42810b1ba (patch) | |
| tree | 706f4a21058260dae4c95e92f9903ba36462a6c9 /mdk-stage1/dietlibc/lib | |
| parent | d8eafdaf6dcc25efbf046f5d3c872a2f35fd7510 (diff) | |
| download | drakx-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar drakx-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar.gz drakx-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar.bz2 drakx-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.tar.xz drakx-3e01f8d47f8677c4faead6c08fbbfcf42810b1ba.zip | |
i need working random suite for ppp with dietlibc
Diffstat (limited to 'mdk-stage1/dietlibc/lib')
| -rw-r--r-- | mdk-stage1/dietlibc/lib/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |
