-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING: CPU random generator seem to be failing, disabling hardware random number generation #134
Comments
The only random number usage I can find in Photini is a redundant import of the Python You have also discovered another example of the Qt libraries' increasing fussiness about parameter types, so I need to change that. |
I'm not able to reproduce the |
|
also installing and using PySide2 seems to fix the problem |
Can you change back to PySide6 (use |
OK, I'll have another go at reproducing the problem tomorrow (it's 10pm here in the UK). Meanwhile I suggest you switch back to PySide2 until I release the next version of Photini. |
I've managed to reproduce the problem. It appears to be introduced in PySide6 v6.4 where Qt enums are no longer converted to Python ints. (My main computer is using an older version of Python and does not have PySide6 later than v6.2.4. I'm using a virtual machine for these tests.) |
I've found several more incompatibilities with PySide6 v6.4. These are fixed in commit a987e97. |
If you want to continue using PySide6 then installing v6.3.2 should allow the current release of Photini to work. Use To solve your RNG problem I think you need to find out which Python package is causing the error. You can test the packages by importing them into Python like this: I suggest trying this with each of these packages: |
I've been doing a bit of web searching and another one to try is |
As I'm having a CPU like https://askubuntu.com/questions/1264439/warning-cpu-random-generator-seem-to-be-failing-disable-hardware-random-number and this is a well known issue so far, is there a way to force the hardware RNG using alternative method for random number generation (due to some reason I cannot apply BIOS patch on my machine).
The text was updated successfully, but these errors were encountered: