lsg.c: Make the output of lopsubgen reproducible.