Skip to main content
Version: v0.0.5

Function: ipv6()

ipv6(rng): string

A synthetic IPv6 in the RFC 3849 documentation prefix 2001:db8::/32 - never routable.

Parameters

rng

Rng

The seeded generator.

Returns

string

A documentation-prefix IPv6 address string.

Example

import { createRng, ipv6 } from "@cosyte/synth";
ipv6(createRng(1)); // e.g. "2001:db8::NNNN"