]> arthur.barton.de Git - bup.git/blobdiff - cmd/random-cmd.py
Update base_version to 0.34~ for 0.34 development
[bup.git] / cmd / random-cmd.py
diff --git a/cmd/random-cmd.py b/cmd/random-cmd.py
deleted file mode 100755 (executable)
index 91820a8..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-import sys, mmap
-from bup import options, _hashsplit
-from bup.helpers import *
-
-optspec = """
-bup random [-S seed] <numbytes>
---
-S,seed=   optional random number seed (default 1)
-"""
-o = options.Options('bup random', optspec)
-(opt, flags, extra) = o.parse(sys.argv[1:])
-
-if len(extra) != 1:
-    o.fatal("exactly one argument expected")
-
-total = parse_num(extra[0])
-_hashsplit.write_random(sys.stdout.fileno(), total, opt.seed or 0)