@Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (int) (id ^ (id >>> 32));
        result = prime * result + priority;
        long temp = Double.doubleToLongBits(random);
        result = prime * result + (int) (temp ^ (temp >>> 32));
        result = prime * result + ((tag == null) ? 0 : tag.hashCode());
        return result;
    }