This should be called 'random_state', and you should use 'sklearn.utils.check_random_state' on it.