[PATCH openEuler-5.10-LTS 105/162] random: check for signal and try earlier when generating entropy