Langevin dynamics simulation of a one-dimensional linear spin chain with long-range interactions