[webkit-changes] [WebKit/WebKit] ecc067: Add functions for generating random unsigned integers

Don Olmstead noreply at github.com
Thu Nov 3 14:48:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ecc067cc894ba2088d6da3945e547491c2fdcdb5
      https://github.com/WebKit/WebKit/commit/ecc067cc894ba2088d6da3945e547491c2fdcdb5
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
    M Source/WTF/wtf/RandomNumber.cpp
    M Source/WTF/wtf/RandomNumber.h
    M Source/WebCore/platform/network/FormDataBuilder.cpp
    M Source/WebCore/style/RuleSetBuilder.cpp
    M Source/WebKit/Platform/IPC/win/ConnectionWin.cpp
    M Source/WebKit/Platform/unix/SharedMemoryUnix.cpp

  Log Message:
  -----------
  Add functions for generating random unsigned integers
https://bugs.webkit.org/show_bug.cgi?id=247446

Reviewed by Yusuke Suzuki.

Add `cryptographicallyRandomUint32` and `cryptographicallyRandomUint64`
for generating unsigned integers. Replace uses of `randomNumber` that
were creating random unsigned integers. These were all just reversing
the operations used internally in `randomNumber`.

* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
* Source/WTF/wtf/RandomNumber.cpp:
* Source/WTF/wtf/RandomNumber.h:
* Source/WebCore/platform/network/FormDataBuilder.cpp:
* Source/WebCore/style/RuleSetBuilder.cpp:
* Source/WebKit/Platform/IPC/win/ConnectionWin.cpp:
* Source/WebKit/Platform/unix/SharedMemoryUnix.cpp:

Canonical link: https://commits.webkit.org/256293@main




More information about the webkit-changes mailing list