Elohim prophesied to Adam and Eve that the seed of the woman would crush the head of Satan, foretelling that Spirit would impregnate the woman to bring forth the Messiah (Jesus Christ), so the children of Adam and Eve undoubtedly learned this prophecy which was written (see P. J. Wiseman on Toledoth), as did their children, on and on, thus all of the world (at least the interested) knew about the prophecy when Noah’s Flood came, and that expectation instilled even after the Tower of Babel.