Cryptographic Fallback to Non-CSPRNG in sm-crypto: Node.js SM2 Key Generation Predictability
sm-crypto 0.4.0 falls back to Math.random() + wall-clock seeding for SM2 private key generation on Node.js because jsbn's SecureRandom checks window.crypto instead of globalThis.crypto. This renders all default SM2 keys cryptographically predictable.