I am not sure if we need to preserve this behavior as general expectation is that you don't pass parameter return. So without param we should call just srand ( it also prevent potential security issue with time prediction ).