init seed for rand