aboutsummaryrefslogtreecommitdiffstats
path: root/missing/random.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:09:58 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:09:58 +0300
commitcae8bc6ced84c12590e3554a06a952283735363a (patch)
treeca4f38bfcb1312bfb62fc693564d68f3e9b3e973 /missing/random.c
parentdbd583bd2b8a6dd40c622875a4e197360cb5aba7 (diff)
downloadegawk-cae8bc6ced84c12590e3554a06a952283735363a.tar.gz
egawk-cae8bc6ced84c12590e3554a06a952283735363a.tar.bz2
egawk-cae8bc6ced84c12590e3554a06a952283735363a.zip
Move to 2.14.
Diffstat (limited to 'missing/random.c')
-rw-r--r--missing/random.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/missing/random.c b/missing/random.c
index 3cd675e4..16e598ae 100644
--- a/missing/random.c
+++ b/missing/random.c
@@ -196,6 +196,7 @@ static long *end_ptr = &randtbl[ DEG_3 + 1 ];
* values produced by this routine.
*/
+void
srandom( x )
unsigned x;
@@ -250,7 +251,7 @@ initstate( seed, arg_state, n )
if( n < BREAK_1 ) {
if( n < BREAK_0 ) {
fprintf( stderr, "initstate: not enough state (%d bytes) with which to do jack; ignored.\n", n );
- return;
+ return 0;
}
rand_type = TYPE_0;
rand_deg = DEG_0;