| 64 | } |
| 65 | |
| 66 | void CScore::GeneratePassphrase(char *pBuf, int BufSize) |
| 67 | { |
| 68 | for(int i = 0; i < 3; i++) |
| 69 | { |
| 70 | if(i != 0) |
| 71 | str_append(pBuf, " ", BufSize); |
| 72 | // TODO: decide if the slight bias towards lower numbers is ok |
| 73 | int Rand = m_Prng.RandomBits() % m_vWordlist.size(); |
| 74 | str_append(pBuf, m_vWordlist[Rand].c_str(), BufSize); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | CScore::CScore(CGameContext *pGameServer, CDbConnectionPool *pPool) : |
| 79 | m_pPool(pPool), |
nothing calls this directly
no test coverage detected