benchmark works, but could use some improvement.

~33k packets/sec for a single local pair.
This commit is contained in:
Jae Kwon
2014-07-02 16:03:04 -07:00
parent c40fc65e6b
commit 3e2f377863
11 changed files with 103 additions and 68 deletions
+12
View File
@@ -0,0 +1,12 @@
package common
import "crypto/rand"
func RandStr(length int) string {
b := make([]byte, length)
_, err := rand.Read(b)
if err != nil {
return ""
}
return string(b)
}