small fix in DefaultRngAuto class for easier parsing with Python wrapper generator
This commit is contained in:
parent
191f25ae7c
commit
939b6ad72f
@ -181,10 +181,9 @@ namespace cv
|
||||
{
|
||||
struct CV_EXPORTS DefaultRngAuto
|
||||
{
|
||||
const static uint64 def_state = (uint64)-1;
|
||||
const uint64 old_state;
|
||||
|
||||
DefaultRngAuto() : old_state(theRNG().state) { theRNG().state = def_state; }
|
||||
DefaultRngAuto() : old_state(theRNG().state) { theRNG().state = (uint64)-1; }
|
||||
~DefaultRngAuto() { theRNG().state = old_state; }
|
||||
|
||||
DefaultRngAuto& operator=(const DefaultRngAuto&);
|
||||
|
Loading…
Reference in New Issue
Block a user