AdaBoost works for any estimator. If we don't add this line, then the test unit using an svm inside adaboost crashes, because SVM doesn't have any random_state parameter. Yet , in my opinion, if the base estimator has one, then it should properly be controlled by the meta-estimator.