Added random number seed to source sampling tests.

This should fix issues with failing CI.