I'm looking for a way to generate a random IPv6 multicast address in Java for a distributed pub/sub application.
This means there may be many (distributed) nodes and each node should be able to generate (potentially many) random and unique IPv6 multicast addresses.
I'm unsure how to efficiently and safely do this. Assuming a fixed multicast prefix leaves us 2^112 unique multicast addresses but that does require a good random number generator, one that can be used in a distributed setting. Perhaps I should seed it with the time or something like that? Even if I do so, I'm unsure what is a good way to construct an IPv6 address, Java does not immediately provide functionality for this.
Any suggestions?