[Webkit-unassigned] [Bug 170095] New: [WTF] Introduce WTF::RandomDevice which keeps /dev/urandom opened

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 25 00:25:04 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=170095

            Bug ID: 170095
           Summary: [WTF] Introduce WTF::RandomDevice which keeps
                    /dev/urandom opened
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: utatane.tea at gmail.com

Currently, everytime cryptographicallyRandomValuesFromOS is called, /dev/urandom is opened and closed.
In addition to unnecessary system calls, especially open is not so scalable due to its POSIX requirement returning the lowest file descriptor number[1].

Instead, we introduce a new class RandomDevice. It keeps `/dev/urandom` file opened in its member.
In the subsequent patch, it may be useful that changing cryptographicallyRandomValuesFromOS to use static RandomDevice for the process.

[1]: http://dl.acm.org/citation.cfm?id=2522712

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170325/824eb5f0/attachment.html>


More information about the webkit-unassigned mailing list