Updated uuidgen.c to simplify a for statement