]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Use monotonic count to initialize the NetLib random seed.
authorFu Siyuan <siyuan.fu@intel.com>
Fri, 7 Aug 2015 03:22:10 +0000 (03:22 +0000)
committersfu5 <sfu5@Edk2>
Fri, 7 Aug 2015 03:22:10 +0000 (03:22 +0000)
commit2bd25290f3841c135342737c01a7e4336b72b271
treee371a4eeb6127b39209e04ada0148ed294ab5e78
parentf52e226e19c79e7276668e29c173fbf19a851a36
MdeModulePkg: Use monotonic count to initialize the NetLib random seed.

NetRandomInitSeed() function use current time to initialize the random seed,
while in some platform the time service is not accuracy that make the random
seed collision. This patch add the monotonic count to the seed to avoid this.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18185 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Include/Library/NetLib.h
MdeModulePkg/Library/DxeNetLib/DxeNetLib.c