I’m working on a UUID/TypeID library for Erlang and am wondering what peoples opinions are on rand:bytes/1
vs crypto:strong_rand_bytes/
?
Do you prefer one over the other? Which should be the default? Would like to have an option to select it or is it better to just have a proper hard-coded default and let people roll their own if they really need speed/security? What tradeoffs exist regarding collision risk or security considerations (which of course depends very much on the use case)?