Skip to content

[Mac OS X] Fix sys_ss_random_number_generator & cleanup some dead code - #19382

Merged
elad335 merged 3 commits into
RPCS3:masterfrom
schm1dtmac:macosxfix
Sep 2, 2026
Merged

[Mac OS X] Fix sys_ss_random_number_generator & cleanup some dead code#19382
elad335 merged 3 commits into
RPCS3:masterfrom
schm1dtmac:macosxfix

Conversation

@schm1dtmac

Copy link
Copy Markdown
Contributor

Fixes #19381, ignored OP's AI generated comment and had a look myself since VSH also exhibits the same issue (if it didn't, I'd have been worried as honestly I'd think VSH is the #1 user of random number generation 😂), seems to just be a case of very loose detection of what classes as an optical disk on Mac OS X, I've checked online and everything suggests they're only ever mounted as /dev/disk (and /dev/rdisk respectively for the raw device) so a check for "disk" should be enough to fix this up. (Also cleaned up a dead line of code in rpcs3.cpp too relating to unsupported Mac OS X versions, too minor to be worth doing elsewhere).

@elad335
elad335 enabled auto-merge (rebase) September 2, 2026 04:32
@elad335
elad335 disabled auto-merge September 2, 2026 04:33
Comment thread Utilities/File.cpp Outdated
@elad335
elad335 enabled auto-merge (squash) September 2, 2026 11:26
@elad335
elad335 merged commit c195942 into RPCS3:master Sep 2, 2026
10 checks passed
@schm1dtmac
schm1dtmac deleted the macosxfix branch September 3, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Regression] MacOS: /dev/urandom misdetected as optical device post BD changes

3 participants