Skip to content

Commit 8b55bff

Browse files
Alex-deVisrazvand
authored andcommitted
Rename LIBUKSWRAND to LIBUKRANDOM
Signed-off-by: Alex Apostolescu <[email protected]> Reviewed-by: Michalis Pappas <[email protected]> Reviewed-by: Razvan Deaconescu <[email protected]> Approved-by: Razvan Deaconescu <[email protected]> GitHub-Closes: #80
1 parent 4188eab commit 8b55bff

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Config.uk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config APPELFLOADER_DEPENDENCIES
1919
imply LIBPOSIX_POLL_YIELD
2020
imply LIBPOSIX_SYSINFO
2121
imply LIBPOSIX_USER
22-
imply LIBUKSWRAND
22+
imply LIBUKRANDOM
2323
imply LIBPOSIX_ENVIRON
2424

2525
### App configuration

main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
#endif /* CONFIG_LIBPOSIX_PROCESS */
4949
#include <uk/thread.h>
5050
#include <uk/sched.h>
51-
#if CONFIG_LIBUKSWRAND
52-
#include <uk/swrand.h>
53-
#endif /* CONFIG_LIBUKSWRAND */
51+
#if CONFIG_LIBUKRANDOM
52+
#include <uk/random.h>
53+
#endif /* CONFIG_LIBUKRANDOM */
5454
#if CONFIG_APPELFLOADER_VFSEXEC_ENVPATH
5555
#include <uk/argparse.h>
5656
#include <uk/streambuf.h>
@@ -347,14 +347,14 @@ int main(int argc, char *argv[])
347347
/*
348348
* Initialize application thread
349349
*/
350-
#if CONFIG_LIBUKSWRAND
351-
uk_swrand_fill_buffer(rand, sizeof(rand));
352-
#else /* !CONFIG_LIBUKSWRAND */
350+
#if CONFIG_LIBUKRANDOM
351+
uk_random_fill_buffer(rand, sizeof(rand));
352+
#else /* !CONFIG_LIBUKRANDOM */
353353
/* Without random numbers, use a hardcoded seed */
354354
uk_pr_warn("%s: Using hard-coded random seed\n", progname);
355355
rand[0] = 0xB0B0;
356356
rand[1] = 0xF00D;
357-
#endif /* !CONFIG_LIBUKSWRAND */
357+
#endif /* !CONFIG_LIBUKRANDOM */
358358

359359
uk_pr_debug("%s: Prepare application thread...\n", progname);
360360
elf_ctx_init(&app_thread->ctx, prog, progname,

0 commit comments

Comments
 (0)