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
This commit is contained in:
Joe Taylor 2016-06-03 20:25:47 +00:00
parent a2cbb623aa
commit a3c5a172bc

View File

@ -392,6 +392,7 @@ void ldpc_decode_ ( double lratio[], char decoded[], int *max_iterations, int *n
float fac; float fac;
max_iter=*max_iterations; max_iter=*max_iterations;
srand(-1);
for (itry=0; itry< *max_dither; itry++) { for (itry=0; itry< *max_dither; itry++) {
for (i=0; i<N; i++) { for (i=0; i<N; i++) {
if( itry == 0 ) { if( itry == 0 ) {