summaryrefslogtreecommitdiffstats
path: root/src/shared/util.h
blob: 26374193bda00fe9204f53087d18cf082b7d6707 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * util.h
 *
 *  Created on: 30.01.2013
 *      Author: sr
 */

#ifndef UTIL_H_
#define UTIL_H_

#include <QByteArray>
#include <QRandomGenerator>

// Remove after we drop Ubuntu 20.04
#if QT_VERSION < QT_VERSION_CHECK(5,15,0)
#define errorOccurred error
#endif

#define slxrand() (QRandomGenerator::system()->generate())

QByteArray genSha1(const QByteArray *a, const QByteArray *b = nullptr, const QByteArray *c = nullptr, const QByteArray *d = nullptr, const QByteArray *e = nullptr);

#endif /* UTIL_H_ */