all: Use crypt/rand through its buffered version, but not in benchmarks (#7420)

This commit is contained in:
greatroar
2021-03-02 19:17:20 +01:00
committed by GitHub
parent 55d5e03639
commit 56b5352f64
6 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -8,7 +8,6 @@ package protocol
import (
"context"
"crypto/rand"
"crypto/sha256"
"encoding/base32"
"encoding/binary"
@@ -20,6 +19,7 @@ import (
"github.com/gogo/protobuf/proto"
"github.com/miscreant/miscreant.go"
"github.com/syncthing/syncthing/lib/rand"
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/crypto/hkdf"
"golang.org/x/crypto/scrypt"