Mistake on this page?
Report an issue in GitHub or email us
prand.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief Pseudo-random number generator interface.
6  *
7  * Copyright (c) 2016-2018 Arm Ltd. All Rights Reserved.
8  * ARM confidential and proprietary.
9  *
10  * Copyright (c) 2019-2020 Packetcraft, Inc.
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24 /*************************************************************************************************/
25 
26 #ifndef PRAND_H
27 #define PRAND_H
28 
29 #include "wsf_types.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /**************************************************************************************************
36  Functions
37 **************************************************************************************************/
38 
39 /*************************************************************************************************/
40 /*!
41  * \brief Initialize random number generator.
42  */
43 /*************************************************************************************************/
44 void PrandInit(void);
45 
46 /*************************************************************************************************/
47 /*!
48  * \brief Generate random data.
49  *
50  * \param pBuf Storage for random data.
51  * \param len Length of data to generate, in bytes.
52  */
53 /*************************************************************************************************/
54 void PrandGen(uint8_t *pBuf, uint16_t len);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* PRAND_H */
void PrandGen(uint8_t *pBuf, uint16_t len)
Generate random data.
Platform-independent data types.
void PrandInit(void)
Initialize random number generator.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.