public static StreamID createStreamID(String name) {
        return new BasicStreamID(name);
    }
The random number to use, someone with Java can predict stream IDs if they can guess the current seed
xmppserver/src/main/java/org/jivesoftware/openfire/spi/BasicStreamIDFactory.java