Skip to content

sunos: use getrandom(2) for uv_random - #5187

Merged
cjihrig merged 1 commit into
libuv:v1.xfrom
psumbera:solaris-getrandom
Jul 8, 2026
Merged

cjihrig merged 1 commit into
libuv:v1.xfrom
psumbera:solaris-getrandom

Conversation

@psumbera

@psumbera psumbera commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Solaris provides getrandom(2), which is preferred over reading from /dev/urandom directly.

Build the shared getrandom backend on SunOS and select it before falling back to /dev/urandom when the symbol is unavailable.

Solaris provides getrandom(2), which is preferred over reading from
/dev/urandom directly.

Build the shared getrandom backend on SunOS and select it before
falling back to /dev/urandom when the symbol is unavailable.
@cjihrig
cjihrig merged commit 4b9d359 into libuv:v1.x Jul 8, 2026
66 of 67 checks passed
@ptlomholt

Copy link
Copy Markdown
Contributor

@psumbera may I ask how you build on Solaris? After #3520 I am getting compilation errors due to _PATH_DEFPATH and NAME_MAX being undefined! I'm on Solaris 11.4 using gcc and autotools. I figure you are not having this problem?

@psumbera

Copy link
Copy Markdown
Contributor Author

@psumbera may I ask how you build on Solaris? After #3520 I am getting compilation errors due to _PATH_DEFPATH and NAME_MAX being undefined! I'm on Solaris 11.4 using gcc and autotools. I figure you are not having this problem?

There is indeed problem. You are right. See: #5197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants