type_grand.html

来自「一个由Mike Gashler完成的机器学习方面的includes neural」· HTML 代码 · 共 39 行

HTML
39
字号
<html><head><title>Generated Documentation</title></head><body>	<image src="headerimage.png">	<br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GRand</b></big></big></big><br><br></td><td> A pseudo random number generator for big numbers. It's supposed to be cryptographically strong, but I designed it myself so you shouldn't trust it.</td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>Decrypt</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize)<br>void <big><b>Encrypt</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize)<br>void <big><b>ShaDigestEntropy</b></big>(unsigned char* pEntropy, int nEntropyBytes, int nRatio, unsigned int* pResults)<br><div style="margin-left: 80px;"><font color=brown> pEntropy is a pointer to some entropy bytes. nEntropyBytes is the number of bytes of entropy. nRatio is the ratio of entropy bits to random bits.  For example, if nRatio is 2, then 40 bytes of entropy will produce 20 bytes of randomness pResults should be a buffer big enough to hold the results of digesting the entropy with the specified ratio.</font></div><br></div><br><big><big><i>Statics (non-public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>Crypto</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize, bool bEncrypt)<br></div><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GRand</b></big>(const unsigned char* pSeedData, int nSeedBytes)<br><div style="margin-left: 80px;"><font color=brown> The seed should already be fully digested into random data when you call this constructor.  The output random numbers will be the same size as the seed.</font></div><br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GRand</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">void <big><b>AddEntropy</b></big>(const unsigned char* pData, int nSize)<br>char* <big><b>GetRand</b></big>()<br>int <big><b>GetRandByteCount</b></big>()<br></div><br></body></html>

⌨️ 快捷键说明

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