mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
benchmark works, but could use some improvement.
~33k packets/sec for a single local pair.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user