Skip to content

Commit

Permalink
fix: add JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kenany committed Apr 1, 2021
1 parent 081827a commit 5852111
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
var getRandomValues = require('get-random-values');

/**
* Generates a cryptographically secure octet.
*
* @returns {number} A cryptographically secure octet
*/
function secureRandomOctet() {
var buf = new Uint8Array(1);
getRandomValues(buf);
Expand Down

0 comments on commit 5852111

Please sign in to comment.