Problem
The current implementation generates benchmark inputs and keys using Math.random(), which is not suitable for cryptographic benchmarking and may produce inconsistent randomness.
Proposed Solution
Replace Math.random() with the Web Crypto API (crypto.getRandomValues()).
Generate secure random input data and keys.
Preserve the existing API while improving randomness quality.
Benefits
More realistic cryptographic benchmarks.
Improved randomness quality.
Better alignment with security best practices.
File:
BenchmarkEngine.ts
Please assign this issue to me under eSOC.
Problem
The current implementation generates benchmark inputs and keys using Math.random(), which is not suitable for cryptographic benchmarking and may produce inconsistent randomness.
Proposed Solution
Replace Math.random() with the Web Crypto API (crypto.getRandomValues()).
Generate secure random input data and keys.
Preserve the existing API while improving randomness quality.
Benefits
More realistic cryptographic benchmarks.
Improved randomness quality.
Better alignment with security best practices.
File:
BenchmarkEngine.ts
Please assign this issue to me under eSOC.