Reference · Rolls and exact odds
newSeedfunction
A short seed anybody can read aloud or type: eight letters and digits.
Import it
import { newSeed } from "@johnmorrisdotca/korokoro";
Definition
function newSeed(source?: RandomSource): string
Parameters
| Name | Type | Description |
|---|---|---|
source (optional) | RandomSource | A source of unsigned 32-bit integers; crypto by default where optional. |
Returns
string
A short seed anybody can read aloud or type: eight letters and digits.
Examples
import { newSeed } from "@johnmorrisdotca/korokoro";
import { seededSource } from "@johnmorrisdotca/korokoro";
console.log(newSeed(seededSource("table")));khj72ewmWhat it prints (run when this page was built)