#1612 use right top limit
Merged 2 years ago by mikem. Opened 2 years ago by tkopecek.
tkopecek/koji issue1611  into  master

file modified
+1 -1
@@ -5560,7 +5560,7 @@ 

      if secrets:

          return secrets.token_hex(nbytes=nbytes)


-         values = ['%02x' % random.randint(0, 256) for x in range(nbytes)]

+         values = ['%02x' % random.randint(0, 255) for x in range(nbytes)]

          return ''.join(values)



randint's top limit is included in range, so original value 256 can be
reached and as such hex-digit 100 is emitted enlarging the string.

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

rebased onto 07f0cba

2 years ago

update: added link to issue in commit message

Commit badb40d fixes this pull-request

Pull-Request has been merged by mikem

2 years ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

2 years ago