1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2025-07-06 00:58:30 +00:00

Revert "my rand helper wasn't helping"

This reverts commit 84e5af9fc2.
This commit is contained in:
Vincent Batts 2013-02-13 22:30:04 -05:00
parent 84e5af9fc2
commit 51ff306fd9
3 changed files with 9 additions and 6 deletions

View file

@ -6,7 +6,6 @@ import (
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"log"
"math/rand"
"mime"
"net/http"
"os"
@ -143,7 +142,7 @@ func routeFilesPOST(w http.ResponseWriter, r *http.Request) {
var filename string
info := Info{
Ip: r.RemoteAddr,
Random: rand.Int63(),
Random: Rand64(),
TimeStamp: time.Now(),
}
@ -434,7 +433,7 @@ func routeGetFromUrl(w http.ResponseWriter, r *http.Request) {
if (r.Method == "POST") {
info := Info{
Ip: r.RemoteAddr,
Random: rand.Int63(),
Random: Rand64(),
TimeStamp: time.Now(),
}
log.Println(info)
@ -513,7 +512,7 @@ func routeUpload(w http.ResponseWriter, r *http.Request) {
if (r.Method == "POST") {
info := Info{
Ip: r.RemoteAddr,
Random: rand.Int63(),
Random: Rand64(),
TimeStamp: time.Now(),
}