'How to get OpenCV RNG value?

In old versions of OpenCV (less then 3.4) I could set and get the RNG via: cv::theRNG().state

In newer version I should use cvSetRNGSeed(value) for setting, but how can I get the value? I the same way as I did with the old version?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source