| Index: third_party/libevent/nacl_nonsfi/random.c
|
| diff --git a/third_party/libevent/nacl_nonsfi/random.c b/third_party/libevent/nacl_nonsfi/random.c
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3b887aadc65f12aa6148f381e37ad75ae057f3ac
|
| --- /dev/null
|
| +++ b/third_party/libevent/nacl_nonsfi/random.c
|
| @@ -0,0 +1,13 @@
|
| +/* Copyright 2014 The Chromium Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +#include <stdlib.h>
|
| +
|
| +/* The newlib-based PNaCl toolchain does not provide random(). So, here we
|
| + * define it. It just redirects to the rand(), which is provided by the
|
| + * toolchain. */
|
| +int random() {
|
| + return rand();
|
| +}
|
|
|