```
return urlsafe_b64encode(rng.read(length * 6))[0:length]
```
for pep8 happiness