diff options
Diffstat (limited to 'whisper/whisperv5/filter.go')
-rw-r--r-- | whisper/whisperv5/filter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisperv5/filter.go b/whisper/whisperv5/filter.go index 8aa7b2429..ffa5ae946 100644 --- a/whisper/whisperv5/filter.go +++ b/whisper/whisperv5/filter.go @@ -18,7 +18,7 @@ package whisperv5 import ( "crypto/ecdsa" - "crypto/rand" + crand "crypto/rand" "fmt" "sync" @@ -55,7 +55,7 @@ func NewFilters(w *Whisper) *Filters { func (fs *Filters) generateRandomID() (id string, err error) { buf := make([]byte, 20) for i := 0; i < 3; i++ { - _, err = rand.Read(buf) + _, err = crand.Read(buf) if err != nil { continue } |