Skip to content

Commit

Permalink
BUGFIX: Fix mispelled func 'Verfiy' -> 'Verify'.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-smith committed Oct 5, 2015
1 parent cfacd69 commit a8f7e50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dice.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ func (g *Game) CalculateHMAC() []byte {
return ourHMAC
}

// Verfiy takes a state and checks that the supplied number was fairly generated
func Verfiy(clientSeed []byte, serverSeed []byte, nonce uint64, randNum float64) (bool, error) {
// Verify takes a state and checks that the supplied number was fairly generated
func Verify(clientSeed []byte, serverSeed []byte, nonce uint64, randNum float64) (bool, error) {
game, _ := NewGame(clientSeed, serverSeed)
game.Nonce = nonce

Expand Down
2 changes: 1 addition & 1 deletion dice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestRandomServerSeed(t *testing.T) {

func TestVerify(t *testing.T) {
for _, testRoll := range newTestRolls(t) {
verified, err := Verfiy(testRoll.ClientSeed, testRoll.ServerSeed, testRoll.Nonce, testRoll.Roll)
verified, err := Verify(testRoll.ClientSeed, testRoll.ServerSeed, testRoll.Nonce, testRoll.Roll)
assert.NoError(t, err)
assert.True(t, verified)
}
Expand Down

0 comments on commit a8f7e50

Please sign in to comment.