SysTutorials

Linux Manual Pages › Section 8

genrandom(8)

genrandom – generate a file containing random data

Synopsis

genrandom [-n number] {size} {filename}

Description

genrandom

generates a file or a set of files containing a specified quantity of pseudo-random data, which can be used as a source of entropy for other commands on systems with no random device.

Arguments

-n number

In place of generating one file, generates number (from 2 to 9) files, appending number to the name.

size

The size of the file, in kilobytes, to generate.

filename

The file name into which random data should be written.

See Also

rand(3), arc4random(3)

Author

Internet Systems Consortium

Copyright

Copyright © 2009-2011 Internet Systems Consortium, Inc. ("ISC")