Skip to content

Commit

Permalink
Remove rand package
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Aug 17, 2023
1 parent f4ad73b commit 62e43bd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 222 deletions.
2 changes: 1 addition & 1 deletion api/grpcserver/grpcserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"log"
"math"
"math/big"
"math/rand"
"net"
"net/http"
"os"
Expand Down Expand Up @@ -46,7 +47,6 @@ import (
"github.com/spacemeshos/go-spacemesh/log/logtest"
"github.com/spacemeshos/go-spacemesh/p2p"
pubsubmocks "github.com/spacemeshos/go-spacemesh/p2p/pubsub/mocks"
"github.com/spacemeshos/go-spacemesh/rand"
"github.com/spacemeshos/go-spacemesh/signing"
"github.com/spacemeshos/go-spacemesh/sql"
"github.com/spacemeshos/go-spacemesh/sql/accounts"
Expand Down
2 changes: 1 addition & 1 deletion miner/oracle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package miner

import (
"context"
"math/rand"
"testing"
"time"

Expand All @@ -13,7 +14,6 @@ import (
"github.com/spacemeshos/go-spacemesh/datastore"
"github.com/spacemeshos/go-spacemesh/log/logtest"
"github.com/spacemeshos/go-spacemesh/proposals"
"github.com/spacemeshos/go-spacemesh/rand"
"github.com/spacemeshos/go-spacemesh/signing"
"github.com/spacemeshos/go-spacemesh/sql"
"github.com/spacemeshos/go-spacemesh/sql/atxs"
Expand Down
217 changes: 0 additions & 217 deletions rand/rand.go

This file was deleted.

3 changes: 1 addition & 2 deletions signing/signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ package signing

import (
"crypto/ed25519"
"crypto/rand"
"testing"

"github.com/stretchr/testify/require"

"github.com/spacemeshos/go-spacemesh/rand"
)

func TestNewEdSignerFromBuffer(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion signing/verifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package signing_test

import (
"crypto/ed25519"
"crypto/rand"
"testing"

"github.com/stretchr/testify/require"

"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/rand"
"github.com/spacemeshos/go-spacemesh/signing"
)

Expand Down

0 comments on commit 62e43bd

Please sign in to comment.