Setting the seed before initializing the parameters will make sure to use the same pseudo-random values the next time you are executing the script.
I’m not sure, what you are meaning with “fixate the weights”. Could you explain it a bit?