I need to generate something that would look like a UUID (so that UUID(something)
will not error), but depend on some input.
So in the same way this works:
rand(MersenneTwister(0)) == rand(MersenneTwister(0))
I want this to work:
uuid1(MersenneTwister(0)) == uuid1(MersenneTwister(0))
I understand that this behavior defeats the purpose of a UUID, but I need to cheat the system
Sadly, none of these attempts work:
# I understand why this doesn't work:
# rand doesn't know which version
# UUID this is supposed to be
rand(MersenneTwister(0), UUID)
# not sure what the correct format
# for a version 1 UUID is. Apparently
# not this...
UUID(join([join(rand(['a':'z'; 0:9], n)) for n in ns], '-')) is...