Stuk / jszip

Create, read and edit .zip files with Javascript
https://stuk.github.io/jszip/
Other
9.77k stars 1.3k forks source link

Math.random() usage #914

Open swetha8612 opened 9 months ago

swetha8612 commented 9 months ago

As part of our company's security policy, we run all our application through fortify scan. Fortify scan raised a flag in jszip.js file where Math.random() has been used. It is suggesting to replace with window.crypto.getRandomValues(new Uint32Array(10))[0]. Could you please have a look. Thank you.