kernel: random: Rename early random get function
Rename z_early_boot_rand_get with z_early_rand_get to get consistent with other early functions. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
86ed4c0ae8
commit
f9c7a5e6fb
4 changed files with 9 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
/*
|
||||
* This tests the following random number routines:
|
||||
* void z_early_boot_rand_get(uint8_t *buf, size_t length)
|
||||
* void z_early_rand_get(uint8_t *buf, size_t length)
|
||||
* uint32_t sys_rand32_get(void);
|
||||
*/
|
||||
|
||||
|
@ -35,11 +35,11 @@ ZTEST(rand32_common, test_rand32)
|
|||
|
||||
/* Test early boot random number generation function */
|
||||
/* Cover the case, where argument "length" is < size of "size_t" */
|
||||
z_early_boot_rand_get((uint8_t *)&tmp, (size_t)1);
|
||||
z_early_boot_rand_get((uint8_t *)&last_gen, sizeof(last_gen));
|
||||
z_early_boot_rand_get((uint8_t *)&gen, sizeof(gen));
|
||||
z_early_rand_get((uint8_t *)&tmp, (size_t)1);
|
||||
z_early_rand_get((uint8_t *)&last_gen, sizeof(last_gen));
|
||||
z_early_rand_get((uint8_t *)&gen, sizeof(gen));
|
||||
zassert_true(last_gen != gen && last_gen != tmp && tmp != gen,
|
||||
"z_early_boot_rand_get failed");
|
||||
"z_early_rand_get failed");
|
||||
|
||||
/*
|
||||
* Test subsequently calls sys_rand32_get(), checking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue