mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +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{}{}
|
excl[addr] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
bytes := make([]byte, 32)
|
||||||
bytes := make([]byte, 32)
|
|
||||||
rand.Read(bytes)
|
|
||||||
|
|
||||||
addr := common.BytesToAddress(bytes)
|
var addr common.Address
|
||||||
|
|
||||||
|
for {
|
||||||
|
rand.Read(bytes)
|
||||||
|
addr = common.BytesToAddress(bytes)
|
||||||
|
|
||||||
if _, ok := excl[addr]; ok {
|
if _, ok := excl[addr]; ok {
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue