added random reader
I thought this one might be slow but it gets 400Mb/s on my mac.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user