Skip to content

Commit

Permalink
Closer to output from python version
Browse files Browse the repository at this point in the history
  • Loading branch information
shabda committed Dec 13, 2011
1 parent 5bcdaed commit e52f19d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions humanhash.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ class HumanHasher

uuid: ->
digest = uid()
@humanize digest
[(@humanize digest), digest]




DEFAULT_HASHER = new HumanHasher()
DEFAULT_HASHER = new HumanHasher()
digest = '7528880a986c40e78c38115e640da2a1'
console.log DEFAULT_HASHER.humanize(digest)
console.log DEFAULT_HASHER.humanize(digest, words=6)
console.log DEFAULT_HASHER.uuid()

0 comments on commit e52f19d

Please sign in to comment.