1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! PPG is a Pretty-good Pass-phrase Generator.
//!
//! When invoked from the command line it will print a five-word pass-phrase.
//!
//! For example:
//! ```shell
//! % ppg
//! saga junior polls store wrist
//! ```
//!
//! Words are drawn from the "formal" word list of
//! [Christopher Wellons's Pokerware](https://github.com/skeeto/pokerware)
//! using a random number generator from [rand]; the generator it uses is
//! intended to be cryptographically secure.
use SliceRandom;
use thread_rng;
include!;
/// Generate a new pass-phrase.
///
/// This function generates a new five word pass-phrase using [rand]
/// to draw from the "formal" word list of Christopher Wellons's
/// [Pokerware](https://github.com/skeeto/pokerware).