From a3c5a172bc8fa254afeceed5c1b91623d754dcfa Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 3 Jun 2016 20:25:47 +0000 Subject: [PATCH] Always start with srand(-1) in ldpc_decode(). git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6724 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/ldpc/dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ldpc/dec.c b/lib/ldpc/dec.c index d87f962f4..68029115f 100755 --- a/lib/ldpc/dec.c +++ b/lib/ldpc/dec.c @@ -392,6 +392,7 @@ void ldpc_decode_ ( double lratio[], char decoded[], int *max_iterations, int *n float fac; max_iter=*max_iterations; + srand(-1); for (itry=0; itry< *max_dither; itry++) { for (i=0; i