Skip to content

Commit

Permalink
Minor: Fix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
pastc committed Mar 8, 2024
1 parent b4ffe3f commit 9b8d075
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 125 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All the algorithms are provably fair.
## Install

```shell
go get github.com/pastc/vero
go get github.com/pastc/vero/v2
```

## Features
Expand Down
2 changes: 1 addition & 1 deletion crash.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"strconv"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

// houseEdge i.e, percentage that the house gets
Expand Down
2 changes: 1 addition & 1 deletion crash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"
"testing"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

func TestCrash(t *testing.T) {
Expand Down
73 changes: 0 additions & 73 deletions csv.go

This file was deleted.

2 changes: 1 addition & 1 deletion dice.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"strconv"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

// Dice generates a random integer from 0 to 9999
Expand Down
2 changes: 1 addition & 1 deletion dice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"testing"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

func TestDice(t *testing.T) {
Expand Down
37 changes: 0 additions & 37 deletions internal/math.go

This file was deleted.

6 changes: 0 additions & 6 deletions internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ func Hash256(s string) string {
return string(h.Sum(nil))
}

//func Hash512(s string) string {
// h := sha512.New()
// h.Write([]byte(s))
// return string(h.Sum(nil))
//}

func Hmac256(key string, s string) string {
hmacHash := hmac.New(sha256.New, []byte(key))
hmacHash.Write([]byte(s))
Expand Down
2 changes: 1 addition & 1 deletion plinko.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"strconv"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

// Plinko generates the column number that the ball landed on
Expand Down
2 changes: 1 addition & 1 deletion plinko_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"testing"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

func TestPlinko(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion roll.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package vero
import (
"strconv"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

// maximum is the maximum value that can be rolled, counting from 0
Expand Down
2 changes: 1 addition & 1 deletion roll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"testing"

"github.com/pastc/vero/internal"
"github.com/pastc/vero/v2/internal"
)

func TestRoll(t *testing.T) {
Expand Down

0 comments on commit 9b8d075

Please sign in to comment.