Probability-theoretical generalization of the second lyapunov method