Skip to content

Commit

Permalink
fix: Attempted to overwrite a QRandomGenerator to system() or global().
Browse files Browse the repository at this point in the history
QRandomGenerator::global() no need to call seed
  • Loading branch information
kegechen committed Jun 21, 2023
1 parent 5a11d97 commit caa5e19
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/widgets/dcrumbedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,6 @@ DCrumbEdit::DCrumbEdit(QWidget *parent)
{
Q_D(DCrumbEdit);

QRandomGenerator::global()->seed(QTime(0, 0, 0).secsTo(QTime::currentTime()));

int frameRadius = DStyle::pixelMetric(style(), DStyle::PM_FrameRadius);
int margins = DStyle::pixelMetric(style(), DStyle::PM_FrameMargins);
viewport()->setAutoFillBackground(false);
Expand Down

0 comments on commit caa5e19

Please sign in to comment.