Molecular dynamics simulation of entanglement spreading in generalized hydrodynamics