Stochastic versus deterministic update in simulated annealing