It sounds like the same algorithm described here:
https://www.roguebasin.com/index.php/Cellular_Automata_Metho...