It is a good example to show how generators work (thanx!)
Vinicius Seixas

Whoops! That is probably the case. I did not consider that the render function will re-key everything on every render, which defeats the purpose of the generator in the first place. Memoization and some more complex logic could fix this, but then again it’s probably not worthwhile for simple key generation.