Bug 170096
| Summary: | [WTF][Linux] Use getrandom once unsupported Linux kernels disappear | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> |
| Component: | Web Template Framework | Assignee: | Yusuke Suzuki <ysuzuki> |
| Status: | REOPENED | ||
| Severity: | Normal | CC: | cgarcia, jfbastien, mcatanzaro, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Yusuke Suzuki
We can use getrandom after 3.17.
I think Ubuntu 14.04's kernel is a bit old...
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Michael Catanzaro
Kernel is not the limiting factor here, but glibc, which took a very long time to add support for getrandom(). Unless you want to use getrandom() via syscall() directly.
Yusuke Suzuki
(In reply to Michael Catanzaro from comment #1)
> Kernel is not the limiting factor here, but glibc, which took a very long
> time to add support for getrandom(). Unless you want to use getrandom() via
> syscall() directly.
If so, syscall(SYS_getrandom, buf, length, 0) should work :)
Yusuke Suzuki
OK, so, I'll do this in RandomDevice patch.
*** This bug has been marked as a duplicate of bug 170095 ***
Yusuke Suzuki
Buildbot seems not supporting SYS_getrandom.