X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/0ed5132769e88cb385b5240986b706430f0ccd72..f8e4cd540b87de3e308ec18a2b040b284a741522:/hotline/file_transfer.go 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,