In the RNG documentation there appears to be an error... [closed]
At this link:
http://docs.opencv.org/trunk/modules/core/doc/operations_on_arrays.html?highlight=rng#RNG::RNG()
it says:
"These are the RNG constructors. The first form sets the state to some pre-defined value, equal to 2**32-1 in the current implementation. The second form sets the state to the specified value. If you passed state=0 , the constructor uses the above default value instead to avoid the singular random number sequence, consisting of all zeros."
what is this statement, 2**32-1
, referring to? Should it be 2*32-1
, or does ** have some signigicance in c++.
it's just 0xFFFFFFFF, a 32 bit number with all bits set to one
i think, above is just a lengthy explanation, that you can't use 0 as a seed (because all random values generated from that are 0 again)
2**32 is probably more python than c.
it's the equivalent of pow(2,32) or (1<<32)