grng static method

UuidGrngFn grng(
  1. Randombytes randombytes
)

Creates a callback that returns 16 bytes of random data from a randombytes instance.

Implementation

static UuidGrngFn grng(Randombytes randombytes) => () => randombytes.buf(16);