We are porting our application to various platforms where Intel MKL isn't available and using the NAG C Library to fill in. We noticed that both packages offer the Wichmann-Hill pseudorandom number generator, and we would like to make it so that given the same seed, the same output will be produced. However, according to the description and implementation of Wichmann-Hill on NAG, four seeds and a generator ID must be provided to initialize the stream while the VSL library uses a single seed when initializing. Thus, we can't see any immediate way of analogously seeding the two streams.
Is there a way in which, given a seed, we may produce the same output so that we can get consistent results across platforms?
Thanks
Wichmann-Hill BRNG Seeding
For more complete information about compiler optimizations, see our Optimization Notice.


