author | Nicolas Pitre <nico@cam.org> | |
Wed, 11 Apr 2007 17:59:51 +0000 (13:59 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 12 Apr 2007 02:23:32 +0000 (19:23 -0700) | ||
commit | 2dca1af44806924946828e2fdc82ea408353d286 | |
tree | b9346c6c56721f4ca480463696d45eea969caa16 | tree | snapshot |
parent | 91ecbeca48e675fef8141451edb2c86577f9d63c | commit | diff |
simple random data generator for tests
Reliance on /dev/urandom produces test vectors that are, well, random.
This can cause problems impossible to track down when the data is
different from one test invokation to another.
The goal is not to have random data to test, but rather to have a
convenient way to create sets of large files with non compressible and
non deltifiable data in a reproducible way.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Reliance on /dev/urandom produces test vectors that are, well, random.
This can cause problems impossible to track down when the data is
different from one test invokation to another.
The goal is not to have random data to test, but rather to have a
convenient way to create sets of large files with non compressible and
non deltifiable data in a reproducible way.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
.gitignore | diff | blob | history | |
Makefile | diff | blob | history | |
test-genrandom.c | [new file with mode: 0644] | blob |