on init set random seed