From 29d802200567b639a9b8b4aaa6e8fde8eeac6d5d Mon Sep 17 00:00:00 2001 From: Mark Stosberg Date: Thu, 6 Aug 2015 12:12:13 -0400 Subject: [PATCH] Add section on error handling to README. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a35a3c7..728346a 100644 --- a/README.md +++ b/README.md @@ -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-)