random-data

command
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2025 License: Apache-2.0, MIT Imports: 8 Imported by: 0

README

random-data - writes random data to stdout

random-data writes pseudo-random data to stdout for testing. The data can be written as raw bytes or base64 encodde.

Install

go install github.com/ipfs/go-test/cli/random-data

Usage

> random-bytes -help
NAME
  ./random-data - Write random data to stdout

USAGE
  ./random-data [options]

OPTIONS:
  -b64
        base-64 encode output
  -seed int
        random seed, 0 or unset for current time
  -size int
        number of bytes to generate

Examples

random-data -size=64 -b64
vRujjyEvx8lYiELflaDINvkm5nfueWGCdzEOxhRtz7N2EQjoyrpoMdVVOrwAgNO0tVojDAgu0JpU4hKSsdVl8A==

Note: Specifying the same seed will produce the same results.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL