1
0
mirror of https://github.com/S2-/securerandomstring.git synced 2025-08-02 18:30:04 +02:00

Add section on error handling to README.

This commit is contained in:
Mark Stosberg
2015-08-06 12:12:13 -04:00
parent a1cab50548
commit 29d8022005

View File

@@ -38,6 +38,10 @@ srs({length: 256, urlsafe:true}, function(sr) {
}); });
``` ```
## Error handling
Will throw error if there is not enough accumulated entropy to generate cryptographically strong data. In other words, this without callback will not block even if all entropy sources are drained.
## Author ## Author
[Simon Santoro](https://github.com/S2-) [Simon Santoro](https://github.com/S2-)