Index: experimental/webtry/webtry.go |
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go |
index 2096f7d778f523c2a2dbf6d49c65e3f365c36b4c..830859c08b9ba0b8727a5d55e65df46676080110 100644 |
--- a/experimental/webtry/webtry.go |
+++ b/experimental/webtry/webtry.go |
@@ -139,7 +139,7 @@ func LineNumbers(c string) string { |
return strings.Join(ret, "\n") |
} |
-func init() { |
+func Init() { |
rand.Seed(time.Now().UnixNano()) |
// Change the current working directory to the directory of the executable. |
@@ -952,6 +952,7 @@ func mainHandler(w http.ResponseWriter, r *http.Request) { |
func main() { |
flag.Parse() |
+ Init() |
http.HandleFunc("/i/", autogzip.HandleFunc(imageHandler)) |
http.HandleFunc("/w/", autogzip.HandleFunc(workspaceHandler)) |
http.HandleFunc("/recent/", autogzip.HandleFunc(recentHandler)) |