mirror of
https://github.com/Coldcard/ckbunker.git
synced 2026-08-13 12:33:23 +02:00
py312 random.randint requires integers
This commit is contained in:
parent
19dfb37c9b
commit
852675568a
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class MegaGifCaptcha(CaptchaMaker):
|
|||
#ch = ''.join(self.rng.sample(TOKEN_CHARS, 1)).upper()
|
||||
ch = ''.join(sample(list(charset), 1)).upper()
|
||||
x = randint(-dx, w)
|
||||
y = ans_y + randint(-dy*3/4, dy*3/4)
|
||||
y = ans_y + randint(int(-dy*3/4), int(dy*3/4))
|
||||
dr.text( (x,y), ch, fill=foreground, font=fn)
|
||||
|
||||
frames.append(im)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue