1- // Package diceware provides a library for generating random words via the
2- // diceware algorithm by rolling five six-sided dice to randomly select a word
3- // from a list of english words.
4- //
5- // Read more about the diceware algorithm here: https://en.wikipedia.org/wiki/Diceware.
6- //
7- // list, err := diceware.Generate(6)
8- // if err != nil {
9- // log.Fatal(err)
10- // }
11- // log.Printf(strings.Join(list, "-"))
12- //
13- // Most functions are safe for concurrent use .
1+ // Copyright \d{4} .*
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // [\t\f]+|[ ]{2,}http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License .
1414package diceware
1515
1616import (
@@ -20,7 +20,7 @@ import (
2020 "math/big"
2121)
2222
23- // sides is the number of sides on a die
23+ // sides is the number of sides on a die.
2424var sides = big .NewInt (6 )
2525
2626var _ DicewareGenerator = (* Generator )(nil )
0 commit comments