diff options
Diffstat (limited to 'hotline/file_transfer.go')
| -rw-r--r-- | hotline/file_transfer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/file_transfer.go b/hotline/file_transfer.go index 7c24109..194e8b9 100644 --- a/hotline/file_transfer.go +++ b/hotline/file_transfer.go @@ -1,10 +1,10 @@ package hotline import ( + "crypto/rand" "encoding/binary" "fmt" "math" - "math/rand" "path/filepath" "sync" ) @@ -51,7 +51,7 @@ func (wc *WriteCounter) Write(p []byte) (int, error) { func (cc *ClientConn) newFileTransfer(transferType int, fileName, filePath, size []byte) *FileTransfer { var transactionRef [4]byte - rand.Read(transactionRef[:]) + _, _ = rand.Read(transactionRef[:]) ft := &FileTransfer{ FileName: fileName, |