import { hashCode } from "https://deno.land/x/pup@1.0.0-rc.11/lib/core/loadbalancer.ts";
Generates a hash code for a given IP address string, based on a simple hashing algorithm that distributes the values evenly across an array.
Examples
// Returns 31679
const hash1 = ipHash("192.168.1.1");
// Returns 31679 const hash1 = ipHash("192.168.1.1");
// Returns 48437 const hash2 = ipHash("10.0.0.1");