We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0a798f commit 769bcd6Copy full SHA for 769bcd6
ssh/handshake.go
@@ -5,7 +5,6 @@
5
package ssh
6
7
import (
8
- "crypto/rand"
9
"errors"
10
"fmt"
11
"io"
@@ -501,7 +500,7 @@ func (t *handshakeTransport) sendKexInit() error {
501
500
CompressionClientServer: supportedCompressions,
502
CompressionServerClient: supportedCompressions,
503
}
504
- io.ReadFull(rand.Reader, msg.Cookie[:])
+ io.ReadFull(t.config.Rand, msg.Cookie[:])
505
506
// We mutate the KexAlgos slice, in order to add the kex-strict extension algorithm,
507
// and possibly to add the ext-info extension algorithm. Since the slice may be the
0 commit comments