duckduckgo/zeroclickinfo-goodies — pull request #29 by sdball (2011-11-28 00:26:46+00:00)
Title: Refactor passphrase

Instead of building a hash from a source file containing index and word separated by spaces this new version builds an array of words and randomly selects elements from it.

This will make it easier to modify the list of words since indexes don't need to be maintained by hand.

This has the added bonus of being able to splice from the array, thus guaranteeing that we don't pick the same word more than once in a single passphrase.