Skip to content

Commit

Permalink
readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vinniegarcia committed Mar 6, 2015
1 parent acb7c2a commit ba500ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ var fs = require('fs'),
});
```
2. _Does `Proposal` work with node crypto functions?_

Yes! As you may or may not know, many of the functions in nodejs's [`crypto`](http://nodejs.org/api/crypto.html) module, like [`randomBytes`](http://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback), are async when a callback is passed in but sync when the callback argument is omitted. `Proposal` will work with these and preserve asynchronicity. Example from the unit tests:
```javascript
var buffy = Proposal(crypto.randomBytes, 512);
Expand Down

0 comments on commit ba500ef

Please sign in to comment.