Skip to content

Commit

Permalink
better function name
Browse files Browse the repository at this point in the history
  • Loading branch information
brianolson committed Aug 23, 2022
1 parent 0f2f4ec commit 2fe0fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpcs/txSyncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func init() {
testRand = rand.New(testSource)
}

func cryptoRandBytes(d []byte) {
func testRandBytes(d []byte) {
// We don't need cryptographically strong random bytes for a
// unit test, we _do_ need deterministic 'random' bytes so
// that _sometimes_ a bloom filter doesn't fail on the data
Expand All @@ -69,15 +69,15 @@ func cryptoRandBytes(d []byte) {

func makeMockPendingTxAggregate(txCount int) mockPendingTxAggregate {
var secret [32]byte
cryptoRandBytes(secret[:])
testRandBytes(secret[:])
sk := crypto.GenerateSignatureSecrets(crypto.Seed(secret))
mock := mockPendingTxAggregate{
txns: make([]transactions.SignedTxn, txCount),
}

for i := 0; i < txCount; i++ {
var note [16]byte
cryptoRandBytes(note[:])
testRandBytes(note[:])
tx := transactions.Transaction{
Type: protocol.PaymentTx,
Header: transactions.Header{
Expand Down

0 comments on commit 2fe0fd2

Please sign in to comment.