Maybe here we can use the new onion_random_generate(ret, 32) and on a second pass change that for letters. The idea is to do not call onion_random_generate 32 times, but just one.