Check OS in reproduction methods

- Since there is a bug in the msvc's implementation of
  uniform_int_distribution, it is necessary to add conditional
  compilation flags that obtain the current os in order to compensate
  for this bug. Check if Q_OS_LINUX is defined.