added random reader

I thought this one might be slow but it gets 400Mb/s on my mac.
This commit is contained in:
sm
2017-12-27 22:31:28 -08:00
parent e58f07775c
commit 8bd4b0a0b1
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -25,6 +25,8 @@ func main() {
r = trash.HiLo
case "lohi", "55", "5":
r = trash.LoHi
case "rand", "random":
r = trash.Random
default:
fmt.Fprintf(os.Stderr, "unsupported algorithm: %v\ntry one of 'lo(w)', 'hi(gh)', 'hilo', 'lohi', 'trash'\n", *algo)
os.Exit(1)