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.
random_stub.c
00001 /* 00002 * Copyright (c) 2016, ARM Limited, All Rights Reserved 00003 */ 00004 #include "random_stub.h" 00005 00006 static uint32_t seed_value = 4; 00007 static bool seed_inc = false; 00008 00009 void arm_random_module_init(void) 00010 { 00011 00012 } 00013 00014 uint32_t arm_random_seed_get(void) 00015 { 00016 uint32_t result = seed_value; 00017 if (seed_inc) { 00018 ++seed_value; 00019 } 00020 return result; 00021 } 00022 00023 void random_stub_set_seed(uint32_t value, bool increment) 00024 { 00025 seed_value = value; 00026 seed_inc = increment; 00027 }
Generated on Tue Jul 12 2022 18:18:47 by
