X-Git-Url: http://git.pjr.cc/?p=goDBhammer.git;a=blobdiff_plain;f=src%2Fdbconnector.go;fp=src%2Fdbconnector.go;h=0123d4dd95a64e90501507210a2bc4052c39cf7b;hp=637aa84be802c2fd854b7b16a69521346274cf61;hb=c9ff4815a53c91a582619a41e7952571c02f6075;hpb=ff6679f750e301016b3e070d7d6ffa41048004b8 diff --git a/src/dbconnector.go b/src/dbconnector.go index 637aa84..0123d4d 100644 --- a/src/dbconnector.go +++ b/src/dbconnector.go @@ -3,6 +3,7 @@ package dbconnector import ( "./dbibridge"; + //"strings"; "time"; "rand"; "fmt"; @@ -15,22 +16,22 @@ type DBConnector struct { func CreateRandomText(len int) (str string) { - buf := make([]byte, len+2); + buf := make([]byte, len); rand.Seed(time.Nanoseconds()); for i:=0; i