A seed of 1234 on CPU and GPU will generate different values, this is expected as we use different random number generators on these two devices.
If you generate both on CPU though, you will get the same result, as long as you don’t draw any other random number between the time where you set the seed and sample. For example, windows might not run all the tests that run on linux. And so by the time you get to this test, you might have drawn a different number of samples from the random number generator, giving you different values.