Skip to content

Commit 2c4068d

Browse files
committed
Update documentation
1 parent cabf535 commit 2c4068d

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bcryptjs",
33
"description": "Optimized bcrypt in plain JavaScript with zero dependencies.",
4-
"version": "2.0.2",
4+
"version": "2.1.0",
55
"main": "dist/bcrypt-isaac.js",
66
"license": "New-BSD",
77
"homepage": "http://dcode.io/",

dist/bcrypt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181

8282
/**
8383
* Sets the pseudo random number generator to use as a fallback if neither node's `crypto` module nor the Web Crypto
84-
* API is available. Please note: It is highly important that this PRNG is cryptographically secure!
84+
* API is available. Please note: It is highly important that the PRNG used is cryptographically secure and that it
85+
* is seeded properly!
8586
* @param {?function(number):!Array.<number>} random Function taking the number of bytes to generate as its
8687
* sole argument, returning the corresponding array of cryptographically secure random byte values.
8788
* @see http://nodejs.org/api/crypto.html

src/bcrypt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090

9191
/**
9292
* Sets the pseudo random number generator to use as a fallback if neither node's `crypto` module nor the Web Crypto
93-
* API is available. Please note: It is highly important that this PRNG is cryptographically secure!
93+
* API is available. Please note: It is highly important that the PRNG used is cryptographically secure and that it
94+
* is seeded properly!
9495
* @param {?function(number):!Array.<number>} random Function taking the number of bytes to generate as its
9596
* sole argument, returning the corresponding array of cryptographically secure random byte values.
9697
* @see http://nodejs.org/api/crypto.html

0 commit comments

Comments
 (0)