mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-09-01 05:09:56 +00:00
add configuration for cron
This commit is contained in:
@ -65,7 +65,7 @@ QPair<QString, QString> AWTestLibrary::randomFilenames()
|
||||
.arg(QStandardPaths::writableLocation(
|
||||
QStandardPaths::GenericDataLocation));
|
||||
|
||||
QString name = randomString(20);
|
||||
QString name = randomString(1, 20);
|
||||
fileName += name;
|
||||
writeFileName += name;
|
||||
|
||||
@ -79,11 +79,11 @@ int AWTestLibrary::randomInt(const int max)
|
||||
}
|
||||
|
||||
|
||||
QString AWTestLibrary::randomString(const int max)
|
||||
QString AWTestLibrary::randomString(const int min, const int max)
|
||||
{
|
||||
QString output;
|
||||
|
||||
int count = 1 + randomInt(max);
|
||||
int count = min + randomInt(max - min);
|
||||
for (int i = 0; i < count; i++)
|
||||
output += QChar(randomChar());
|
||||
|
||||
|
Reference in New Issue
Block a user