mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
lint
This commit is contained in:
parent
c0a4b0fbb5
commit
9d975fb833
1 changed files with 6 additions and 4 deletions
|
|
@ -155,11 +155,13 @@ func randomAddress(exclude ...common.Address) common.Address {
|
|||
excl[addr] = struct{}{}
|
||||
}
|
||||
|
||||
for {
|
||||
bytes := make([]byte, 32)
|
||||
rand.Read(bytes)
|
||||
bytes := make([]byte, 32)
|
||||
|
||||
addr := common.BytesToAddress(bytes)
|
||||
var addr common.Address
|
||||
|
||||
for {
|
||||
rand.Read(bytes)
|
||||
addr = common.BytesToAddress(bytes)
|
||||
|
||||
if _, ok := excl[addr]; ok {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue