I need to generate large numbers of deterministic UUIDs which works great for small numbers of values using the pattern
uuidgen --sha1 -n ${namespace} -N ${name}
However, this is too slow for generating hundreds of thousands of them at a time. I can write this in something else, but there other reasons why I'd like to use bash unless it's truly the wrong tool for the job. It is essential that the uuids are the same regardless of when and when they are generated for the application, so changing the algorithm is not an option.
Is there a way this can be done "reasonably" efficiently via bash or do I really need to use a different tool?