You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Although crypto.randomInt() generates secure random numbers, which meet the requirement of csprng, in some cases, crypto generates less than 6 digits integers, which may cause error in authentication.
To Reproduce
Steps to reproduce the behavior:
I didn't try to reproduce it.
Expected behavior
All operations should be done successfully and users should receive approximately 6-digit verification code.
Screenshots
Desktop (please complete the following information):
OS: Windows 10 OS Version 2009 (Build 19042.964)
Browser Chrome
Version 90.0.4430.93
The text was updated successfully, but these errors were encountered:
I think I made a mistake on generating verification code, after reading the documentation and some references, I found that: Crypto Syntax:
crypto.randomInt([min, ] max [, callback])
Parameters: min: An optional minimum value (included) for random int to be generated. Default: 0 max: A required maximum value (excluded) for random int to be generated. callback: An optional callback function which gets executed after a random integer is generated. If callback is specified, method works asynchronously otherwise synchronously by default.
This issue will be resolved as soon as possible. Thank you.
Describe the bug
Although
crypto.randomInt()
generates secure random numbers, which meet the requirement of csprng, in some cases,crypto
generates less than 6 digitsintegers
, which may cause error inauthentication
.To Reproduce
Steps to reproduce the behavior:
I didn't try to reproduce it.
Expected behavior
All operations should be done successfully and users should receive approximately 6-digit verification
code
.Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: