Revert "Port to QRandomGenerator" because QRandomGenerator introduced only in Qt 5.10 (our minimal version is 5.6) This reverts commit 10d2f869.