clrand.c

来自「PGP8.0源码 请认真阅读您的文件包然后写出其具体功能」· C语言 代码 · 共 43 行

C
43
字号
/*____________________________________________________________________________
	Copyright (C) 2002 PGP Corporation
	All rights reserved.
	
	CLrand.c - post dialog to get entropy from mouse and keyboard
	
	$Id: CLrand.c,v 1.2 2002/08/06 20:09:19 dallen Exp $
____________________________________________________________________________*/
#include "pgpPFLConfig.h"

// project header files
#include "PGPclx.h"

// pgp header files
#include "pgpRandomPool.h"
#include "pgpUserInterface.h"

//	______________________________________________
//
//  Entropy collection routine -- posts dialog for 
//  mouse/keyboard entropy collection.

PGPError PGPclExport 
PGPclRandom (
		PGPContextRef	context,
		HWND			hwnd, 
		UINT			uNeeded) 
{
	PGPError err	= kPGPError_NoErr;

	if ((uNeeded != 0) ||
		!PGPGlobalRandomPoolHasMinimumEntropy ())
	{
		err=PGPCollectRandomDataDialog (
			context,
			uNeeded,
			PGPOUIParentWindowHandle (context, hwnd),
			PGPOLastOption (context));
	}

	return err;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?