Update gateway address/location
Use only one instance of SystemRandom()