~q3cpma/mus

2cfd15e5d233cc6b51871bd4a6e46c7069526019 — q3cpma 4 months ago 352bf89 master
fix fair_shuf not working with all AWKs
1 files changed, 2 insertions(+), 1 deletions(-)

M fair_shuf
M fair_shuf => fair_shuf +2 -1
@@ 189,7 189,7 @@ END \
	nb_unpicked = NR
	compute_weights()

	for(; nlines; --nlines, --nonzero_weights)
	for(; nlines; --nlines)
	{
		if(!nonzero_weights)
			compute_weights()


@@ 209,6 209,7 @@ END \
			}
			r -= weight[i]
		}
		--nonzero_weights
	}
	write_db(FILENAME)
}' "$1"