The Wagmi integration setup guide uses Math.random() to generate a SIWE nonce. Math.random() is not cryptographically secure and should not be used for security-sensitive values. The authenticate-users guide already uses the correct window.crypto.randomUUID() approach — this makes the Wagmi integration consistent and safe.
The Wagmi integration setup guide uses Math.random() to generate a SIWE nonce. Math.random() is not cryptographically secure and should not be used for security-sensitive values. The authenticate-users guide already uses the correct window.crypto.randomUUID() approach — this makes the Wagmi integration consistent and safe.