Avoid potential negative array index access to cached text.
[LibreOffice.git] / sal / inc / oslrandom.h
blobb65878433225dd3383ae735df8e1bcaa9c75da66
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SAL_INC_INTERNAL_OSLRANDOM_H
11 #define INCLUDED_SAL_INC_INTERNAL_OSLRANDOM_H
13 #include <cstddef>
15 #if defined __cplusplus
16 extern "C" {
17 #endif
19 int osl_get_system_random_data(char* buffer, size_t desired_len);
21 #if defined __cplusplus
23 #endif
25 #endif
27 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */