mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-24 18:05:22 +00:00
hv: multi-arch: move {arch_}get_random_value to random.c
Tracked-On: #8834 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Fei Li <fei1.li@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
committed by
acrnsi-robot
parent
0e0f673458
commit
0222bb0fc1
17
hypervisor/include/common/random.h
Normal file
17
hypervisor/include/common/random.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2025 Intel Corporation.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef COMMON_RANDOM_H
|
||||
#define COMMON_RANDOM_H
|
||||
|
||||
uint64_t arch_get_random_value(void);
|
||||
|
||||
static inline uint64_t get_random_value(void)
|
||||
{
|
||||
return arch_get_random_value();
|
||||
}
|
||||
|
||||
#endif /* COMMON_RANDOM_H */
|
||||
Reference in New Issue
Block a user