From e52f19d76f59c1891dca78aed7635ab19b95e51a Mon Sep 17 00:00:00 2001 From: Shabda Raaj Date: Tue, 13 Dec 2011 11:15:24 +0530 Subject: [PATCH] Closer to output from python version --- humanhash.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/humanhash.coffee b/humanhash.coffee index 23e1918..1868a85 100644 --- a/humanhash.coffee +++ b/humanhash.coffee @@ -82,9 +82,13 @@ class HumanHasher uuid: -> digest = uid() - @humanize digest + [(@humanize digest), digest] -DEFAULT_HASHER = new HumanHasher() \ No newline at end of file +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() \ No newline at end of file