code: function hash(ip, seed) {
    var hash = ip.reduce(function(r, num) {
      r += parseInt(num, 10);
      r %= 2147483648;
      r += (r << 10);
      r %= 2147483648;
      r ^= r >> 6;
      return r;
    }, seed);
  
    hash += hash << 3;
    hash %= 2147483648;
    hash ^= hash >> 11;
    hash += hash << 15;
    hash %= 2147483648;
  
    return hash >>> 0;
  }
docs: Int31 Hash taken from [https://github.com/indutny/sticky-session]
  
  @param ip
  @param seed
  @returns hash