diff --git a/password/sequencer.go b/password/sequencer.go index 5db581e..7048319 100644 --- a/password/sequencer.go +++ b/password/sequencer.go @@ -22,7 +22,7 @@ type Sequencer interface { First() string // Get returns the current password in the sequence. Get() string - // GetN returns the password at location N, given 0 <= N < MaxPossibleWords + // GetN returns the value for N (location in list of possible passwords). GetN() *big.Int // GotoN overrides N. GotoN(n *big.Int) (string, error) @@ -110,7 +110,7 @@ func (s *sequencer) Get() string { return s.get() } -// GetN returns the password at location N, given 0 <= N <= MaxPossibleWords +// GetN returns the current location in the list of possible passwords. func (s *sequencer) GetN() *big.Int { s.mutex.Lock() defer s.mutex.Unlock() @@ -118,7 +118,7 @@ func (s *sequencer) GetN() *big.Int { return new(big.Int).Set(s.n) } -// GotoN overrides N. +// GotoN overrides the current location in the list of possible passwords. func (s *sequencer) GotoN(n *big.Int) (string, error) { s.mutex.Lock() defer s.mutex.Unlock()