fix llvm warning about '>>'
improve command line parsing
keep generated seeds in reasonable range