Update random port template to newer syntax