At the moment you can generate a random UUID by using:
UUID.randomUUID().toString();
This results in the following string:
94f3c8a3-a161-468f-9844-de92dd90ace7
which is 36 char long...too small to be used, for example, as an ID to persist: I'd expect a lot of collisions.
I'd like to generate at least 128 char long string...by using the sha512 alg I was able to obtain a longer string but sha512 is meant to be secure, not efficient. What could I use to obtain longer ids but with low impact on performances?