diff --git a/src/api/captcha/canvas.ts b/src/api/captcha/canvas.ts index c86cf71..ab7eac8 100644 --- a/src/api/captcha/canvas.ts +++ b/src/api/captcha/canvas.ts @@ -35,7 +35,7 @@ const build = (img: HTMLImageElement, sizes: number[]): [number, string] => { const ctx = canvas.getContext('2d') const coordinate = size / 2 - const moveX = Math.floor(Math.random() * (max - min + 1)) + 0 + const moveX = Math.floor(Math.random() * (max - min + 1)) ctx?.beginPath() ctx?.translate(coordinate, coordinate)