In this book of figures and parables, the word generation is taken in a very loose sense. Every generation descended from Adam is the same, and all have this fault, for what Solomon is saying is that these are essential characteristics of all human beings who are away from God.