Explore
Search
Docs
Sign in
Get started
xtao/nagram
N
xtao
/
Nagram
Public
Sign in to fork
Clone
Code
Issues
Change requests
Actions
Discussions
Commits
Branches
Releases
Search
Contributors
Compare
Code
Issues
Change requests
Actions
Discussions
Commits
Branches
Releases
Search
Contributors
Compare
7df875ed136e
Nagram
/
TMessagesProj
/
jni
/
voip
/
webrtc
/
base
/
rand_util_fuchsia.cc
Code
Blame
16 lines · 360 B
text/plain; charset=utf-8
Raw
1
// Copyright 2017 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include
"base/rand_util.h"
6
7
#include
<zircon/syscalls.h>
8
9
namespace
base
{
10
11
void
RandBytes
(
void*
output
,
size_t
output_length
) {
12
zx_cprng_draw
(output, output_length);
13
}
14
15
}
// namespace base
16