How can I construct a globally unique identifier on every message passed between actors in an Akka application? Note that my Akka application will eventually be running across multiple JVMs on a cluster.
java.util.UUID.randomUUID()
usually does the trick. Internally uses a cryptographically strong pseudo random number generator java.security.SecureRandom
.