Subject: Re: creating random files
To: Manuel Bouyer <email@example.com>
From: Brian C. Grayson <firstname.lastname@example.org>
Date: 03/08/1999 19:47:18
On Mon, Mar 08, 1999 at 03:16:23PM +0100, Manuel Bouyer wrote:
> Well, I'd like to add a regress tool for ffs (kernel and utilities).
> For this I need to create some files with random data in them (creating files
> from /dev/zero will just be too weak for diff -R after a dump/restore or
> fsck -B). I can see 3 way of doing this:
> 1 write a small C program that uses random(). Such a tool could be easy to
> put in src/regress
> 2 use /dev/random. It's not in the GENERIC config file yet, but should be
> for 1.4
> 3 use dd on /netbsd.
Is there anything all that evil about jot(1)? If not, use
If so, I think it'd be better to extend jot's functionality
(like an option to use /dev/random instead of random()) with
additional flags than to create a new program. But that's just MHO.