shortened/accelerated uuid generation

Variable assignment and double assignment+random number generation can be avoided, same time 4 lines reduced to 1.