diff options
Diffstat (limited to 'server/utils/otp.js')
-rw-r--r-- | server/utils/otp.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/utils/otp.js b/server/utils/otp.js index 9a2a0bc..091f6c1 100644 --- a/server/utils/otp.js +++ b/server/utils/otp.js @@ -1,7 +1,9 @@ -import {SIX_TIMES_NINE} from '../constants/aadhaar'; +import {ONE_FIVE_TIMES_ZERO, NINE_FIVE_TIMES_ZERO} from '../constants/numbers'; const generateOTP = () => { - const otp = Math.floor(Math.random() * SIX_TIMES_NINE + 1); + const otp = Math.floor( + ONE_FIVE_TIMES_ZERO + Math.random() * NINE_FIVE_TIMES_ZERO + ); return otp; }; |