Skip to content

Commit

Permalink
Revert "first pass at maintainer covenant, fix #586"
Browse files Browse the repository at this point in the history
This reverts commit c285a4a.
  • Loading branch information
broofa committed Oct 26, 2021
1 parent c285a4a commit 16e9cc9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 78 deletions.
71 changes: 0 additions & 71 deletions MAINTAINER_COVENANT.md

This file was deleted.

2 changes: 0 additions & 2 deletions deploy_broofa.sh

This file was deleted.

5 changes: 0 additions & 5 deletions src/rng.js
@@ -1,17 +1,12 @@
import crypto from 'crypto';

<<<<<<< Updated upstream
const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
=======
const rnds8Pool = new Uint8Array(256);
>>>>>>> Stashed changes
let poolPtr = rnds8Pool.length;

export default function rng() {
if (poolPtr > rnds8Pool.length - 16) {
crypto.randomFillSync(rnds8Pool);
poolPtr = 0;
}

return rnds8Pool.slice(poolPtr, (poolPtr += 16));
}

0 comments on commit 16e9cc9

Please sign in to comment.