This is a known issue of the sample that also hits on Photon.
Just remove the custom implementation of random() in the sample.
random()
See here