0

I am using a bash script and using the command uuidgen to generate UUIDs. However it is quite slow when invoked in a loop. Are there any alternatives I can invoke directly from bash?

I'm guessing the slowness is actually just invoking and stopping the process each loop iteration, not necessary uuidgen being slow code itself.

Justin
  • 5,328
  • 19
  • 64
  • 84

1 Answers1

1

cat /proc/sys/kernel/random/uuid command uses the kernel UUID generator to generate random UUIDs.

It still has the invocation delay, but the generation itself is likely faster.

Tero Kilkanen
  • 36,796
  • 3
  • 41
  • 63