Commit b651289d authored by Wez's avatar Wez Committed by Commit Bot

Roll Fuchsia SDK from ff8427e29bbb to c9062b32e733


The AutoRoll server is located here: https://fuchsia-sdk-chromium-roll.skia.org

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.


CQ_INCLUDE_TRYBOTS=luci.chromium.try:fuchsia_arm64_cast_audio;luci.chromium.try:fuchsia_x64_cast_audio
TBR=cr-fuchsia+bot@chromium.org

Change-Id: Ib0d06bc67ff6ed1fde81d2f5f6a6752f8cf0ad9d
Reviewed-on: https://chromium-review.googlesource.com/1117896Reviewed-by: default avatarWez <wez@chromium.org>
Reviewed-by: default avatarFuchsia SDK Autoroller <fuchsia-sdk-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571022}
parent 736d5d18
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#include <algorithm> #include <algorithm>
#include "base/logging.h"
namespace base { namespace base {
void RandBytes(void* output, size_t output_length) { void RandBytes(void* output, size_t output_length) {
...@@ -19,14 +17,10 @@ void RandBytes(void* output, size_t output_length) { ...@@ -19,14 +17,10 @@ void RandBytes(void* output, size_t output_length) {
// The syscall has a maximum number of bytes that can be read at once. // The syscall has a maximum number of bytes that can be read at once.
size_t read_len = size_t read_len =
std::min(remaining, static_cast<size_t>(ZX_CPRNG_DRAW_MAX_LEN)); std::min(remaining, static_cast<size_t>(ZX_CPRNG_DRAW_MAX_LEN));
zx_cprng_draw(cur, read_len);
size_t actual; remaining -= read_len;
zx_status_t status = zx_cprng_draw(cur, read_len, &actual); cur += read_len;
CHECK(status == ZX_OK && read_len == actual);
CHECK(remaining >= actual);
remaining -= actual;
cur += actual;
} }
} }
......
ff8427e29bbb87bd534b2fc81c2bc006e4c6e980 c9062b32e73367501402b8c650778e52912eb33b
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment