The Flood came because of the sin of spilling seed.
In Judaism, the understanding is that spilling seed is the murder of one's children. It is doing violence. The word for violence is hamas, and this was being committed in the time of Noah all over the world. Gen 6:13 "for the earth is filled with violence through them"
It was for this sin the Er and Onan were killed by G-d, even before the Torah was given at Mt. Sinai. We learn that death is the punishment for a murderer in the story of Cain and Abel.
From this logic is it clearly understood in the Jewish commentaries that spilling one's seed is violence, an act of murder of one's children, and a reason that the Flood came and wiped out all of mankind except 8 souls.
It is no wonder that in this generation, before the world is judged with fire, that such activity is now not only common place among the youth, but promoted, celebrated, and encouraged in our corrupt society.
As Jesus said in Mat 24:37 "But as the days of Noah were, so shall also the coming of the Son of man be."
Part two is soon here. Let's not contribute to it and be swept away when it comes. When one plays with this, they are literally playing with fire.
Sexual purity is the greatest test of this generation. Never before has there been such open and celebrated promiscuity. You are here for a reason, like the rest of us. To be tested in the greatest test any generation has endured. But again, G-d never gives us a test we can't pass. Go and pass it. Pass it every single day. Never give up, never cede one inch of ground. G-d gave you eyelids for a reason. Hold out, pass through the test, and fight for it every day even to the last moment of your death.
Previous generations shuddered at the thought of having to endure the testing of the last generation. They were weak. That is why they are not here. We are. G-d never gives us a test we can't overcome. Go and be faithful to G-d. Choose Him over yourself every time. Every day. Every minute. The Adversary won't let up until we die. Expect it. Survive it. I'll see you on the other side of it, G-d willing.