(j, bias)
| 68 | return result |
| 69 | |
| 70 | def T(j, bias): |
| 71 | # Punycode parameters: tmin = 1, tmax = 26, base = 36 |
| 72 | res = 36 * (j + 1) - bias |
| 73 | if res < 1: return 1 |
| 74 | if res > 26: return 26 |
| 75 | return res |
| 76 | |
| 77 | digits = b"abcdefghijklmnopqrstuvwxyz0123456789" |
| 78 | def generate_generalized_integer(N, bias): |
no outgoing calls
no test coverage detected