assign a free volume randomly

This commit is contained in:
Chris Lu
2012-09-01 02:20:59 -07:00
parent 8d0ea07f5f
commit 7a30a48027
4 changed files with 93 additions and 60 deletions

View File

@@ -9,7 +9,9 @@ import (
"os"
"strings"
"sync"
"math/rand"
"text/template"
"time"
"unicode"
"unicode/utf8"
)
@@ -39,6 +41,7 @@ func setExitStatus(n int) {
}
func main() {
rand.Seed(time.Now().UnixNano())
flag.Usage = usage
flag.Parse()