Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
randLIB_stub.cpp
00001 /* 00002 * Copyright (c) 2016 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #include "randLIB_stub.h" 00018 00019 00020 uint8_t randLIB_stub::uint8_value; 00021 uint16_t randLIB_stub::uint16_value; 00022 uint32_t randLIB_stub::uint32_value; 00023 uint64_t randLIB_stub::uint64_value; 00024 void* randLIB_stub::void_value; 00025 00026 extern "C"{ 00027 00028 void randLIB_seed_random(void){} 00029 00030 void randLIB_add_seed(uint64_t seed){} 00031 00032 uint8_t randLIB_get_8bit(void) 00033 { 00034 return randLIB_stub::uint8_value; 00035 } 00036 00037 uint16_t randLIB_get_16bit(void) 00038 { 00039 return randLIB_stub::uint16_value; 00040 } 00041 00042 uint32_t randLIB_get_32bit(void) 00043 { 00044 return randLIB_stub::uint32_value; 00045 } 00046 00047 uint64_t randLIB_get_64bit(void) 00048 { 00049 return randLIB_stub::uint64_value; 00050 } 00051 00052 void *randLIB_get_n_bytes_random(void *data_ptr, uint8_t count) 00053 { 00054 return randLIB_stub::void_value; 00055 } 00056 00057 uint16_t randLIB_get_random_in_range(uint16_t min, uint16_t max) 00058 { 00059 return randLIB_stub::uint16_value; 00060 } 00061 00062 uint32_t randLIB_randomise_base(uint32_t base, uint16_t min_factor, uint16_t max_factor) 00063 { 00064 return randLIB_stub::uint32_value; 00065 } 00066 00067 } 00068
Generated on Tue Jul 12 2022 11:02:50 by
