@Override
        public boolean equals( Object o )
        {
            if ( this == o ) return true;
            if ( o == null || getClass() != o.getClass() ) return false;
            return id.equals( ((BasicStreamID) o).id );
        }
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