Skip to content

Commit

Permalink
perf(random): increase Crypto default size to 1KB
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 11, 2023
1 parent c675cba commit a30075a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/random/src/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Crypto
/**
* @param size - buffer size in bytes (will be rounded to next multiple of 4)
*/
constructor(size = 64) {
constructor(size = 1024) {
super();
this.buffer = new Uint8Array((size + 3) & ~3);
this.u32 = new Uint32Array(this.buffer.buffer);
Expand Down

0 comments on commit a30075a

Please sign in to comment.