]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/file_transfer.go
Clean up various linter warnings
[rbdr/mobius] / hotline / file_transfer.go
index 7c24109e1dfb9e1f70f0938764d2614464ffb634..194e8b9890e862ac0401e1e758ba3f37b3fc595b 100644 (file)
@@ -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,