CryptGenRandom() wraps a call to RtlGenRandom() which has already been covered to death here.

It is not magical and has few of the amazing attributes you ascribe to it.