Skip to main content
Version: v0.0.4

Function: ipv4()

ipv4(rng): string

A synthetic IPv4 in an RFC 5737 TEST-NET block - never routable.

Parameters

rng

Rng

The seeded generator.

Returns

string

A TEST-NET IPv4 address string.

Example

import { createRng, ipv4 } from "@cosyte/synth";
ipv4(createRng(1)); // e.g. "192.0.2.NN"