28246b59d5
Replace Math.random() with crypto.randomBytes() to fix CodeQL High severity finding for insecure randomness in security context.