<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>170096</bug_id>
          
          <creation_ts>2017-03-25 02:09:18 -0700</creation_ts>
          <short_desc>[WTF][Linux] Use getrandom once unsupported Linux kernels disappear</short_desc>
          <delta_ts>2017-03-28 13:20:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Template Framework</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>jfbastien</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1291180</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-03-25 02:09:18 -0700</bug_when>
    <thetext>We can use getrandom after 3.17.
I think Ubuntu 14.04&apos;s kernel is a bit old...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1291198</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-03-25 07:55:39 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1291202</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-03-25 08:04:30 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #1)
&gt; Kernel is not the limiting factor here, but glibc, which took a very long
&gt; time to add support for getrandom(). Unless you want to use getrandom() via
&gt; syscall() directly.

If so, syscall(SYS_getrandom, buf, length, 0) should work :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1292004</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-03-28 12:28:23 -0700</bug_when>
    <thetext>OK, so, I&apos;ll do this in RandomDevice patch.

*** This bug has been marked as a duplicate of bug 170095 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1292047</commentid>
    <comment_count>4</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-03-28 13:20:33 -0700</bug_when>
    <thetext>Buildbot seems not supporting SYS_getrandom.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>