VirtualBox

vbox的更動 890 路徑 trunk/src/VBox/Runtime/include


忽略:
時間撮記:
2007-2-14 上午09:35:02 (18 年 以前)
作者:
vboxsync
訊息:

RTRand API (feel free to improve the fallback code).

檔案:
複製 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/include/internal/rand.h

    r839 r890  
    11/* $Id$ */
    22/** @file
    3  * InnoTek Portable Runtime - Internal RTTime header
     3 * InnoTek Portable Runtime - Internal RTRand header
    44 */
    55
     
    2020 */
    2121
    22 #ifndef __internal_time_h__
    23 #define __internal_time_h__
     22#ifndef __internal_rand_h__
     23#define __internal_rand_h__
    2424
    2525#include <iprt/types.h>
     
    2727__BEGIN_DECLS
    2828
    29 #ifdef IN_RING3
     29/**
     30 * Initialize OS facilities for generating random bytes.
     31 */
     32void rtRandLazyInitNative(void);
    3033
    31 extern uint64_t g_u64ProgramStartNanoTS;
    32 extern uint64_t g_u64ProgramStartMilliTS;
     34/**
     35 * Generate random bytes using OS facilities.
     36 *
     37 * @returns VINF_SUCCESS on success, some error status code on failure.
     38 * @param   pv      Where to store the random bytes.
     39 * @param   cb      How many random bytes to store.
     40 */
     41int rtRandGenBytesNative(void *pv, size_t cb);
    3342
    34 #endif
     43void rtRandGenBytesFallback(void *pv, size_t cb);
    3544
    3645__END_DECLS
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette