mirror of
https://github.com/S2-/securerandomstring.git
synced 2025-08-02 10:20:05 +02:00
Add section on error handling to README.
This commit is contained in:
@@ -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
|
||||
|
||||
[Simon Santoro](https://github.com/S2-)
|
||||
|
Reference in New Issue
Block a user