Improve seed generator (Feature request #460)