MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / GDVerificationCode

Method GDVerificationCode

src/ui/gd_gui/src/gd_verification.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22GDVerificationCode::GDVerificationCode(bool draw_dot, int code_num, QWidget* parent)
23 : draw_dot_(draw_dot), code_num_(code_num), QWidget(parent)
24{
25 colors_ = new QColor[code_num_]; // 改用 QColor
26 initializeRandomSeed(QTime::currentTime().second() * 1000 + QTime::currentTime().msec());
27 verification_code_ = GetVerificationCodeByRand();
28 UpdateColors();
29}
30
31GDVerificationCode::~GDVerificationCode()
32{

Callers

nothing calls this directly

Calls 1

initializeRandomSeedFunction · 0.85

Tested by

no test coverage detected