summaryrefslogtreecommitdiff
path: root/random.pl
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2014-09-02 08:01:39 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:10 +0100
commita8699a58d8632f21e897ea5c4900a15483a9a8ca (patch)
treefd8e7910807eb91bcd79d498582959f1d750f9c6 /random.pl
parentd884971193ef4934424b77ae862e8b0ecf70bab3 (diff)
release: rc-1.7.2
Diffstat (limited to 'random.pl')
-rw-r--r--random.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/random.pl b/random.pl
new file mode 100644
index 0000000..90998d5
--- /dev/null
+++ b/random.pl
@@ -0,0 +1,15 @@
+#! /usr/bin/perl
+
+$count = 10;
+$size = rand(1000);
+
+for ($i = 0; $i < $count; ++$i) {
+ open OUT, "> t$i" or die;
+ for ($j = 0; $j < $size; ++$j) {
+ printf OUT "%c", rand(256);
+ }
+ close OUT;
+ $cmd = "./rc t$i";
+ print $cmd, "\n";
+ system $cmd;
+}