MPSGeneratorImpl::clone_impl only copied the seed and re-seeded a fresh generator, resetting offset to 0. Now copies data_ and engine_ so offset doesn't get reset.
Pull Request resolved: #185002
Approved by: https://github.com/Skylion007
Intelligence View
⚡ tsecurity.de Intelligence
trunk/5f5225d805c952d88bce25a8cd27c61da77d72ec: [MPS] Fix generator clone (#185002)
MPSGeneratorImpl::clone_impl only copied the seed and re-seeded a fresh generator, resetting offset to 0. Now copies data_ and engine_ so offset doesn't get…