Uncomment randomBytes

Former-commit-id: 9d0cd3359c
This commit is contained in:
virvar 2016-06-17 10:03:14 +03:00
parent 83d3183aa6
commit c2f81f99c0
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
(byteArrayToHex (.digest sha-256))) (byteArrayToHex (.digest sha-256)))
(defn gen-random-bytes [length cb] (defn gen-random-bytes [length cb]
#_(.randomBytes random-bytes length (fn [& [err buf]] (.randomBytes random-bytes length (fn [& [err buf]]
(if err (if err
(cb {:error err}) (cb {:error err})
(cb {:buffer buf}))))) (cb {:buffer buf})))))