Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
util.h
Go to the documentation of this file.
1 /*
2  * util.h
3  *
4  * Created on: 30.01.2013
5  * Author: sr
6  */
7 
8 #ifndef UTIL_H_
9 #define UTIL_H_
10 
11 #include <QByteArray>
12 #include <QRandomGenerator>
13 
14 // Remove after we drop Ubuntu 20.04
15 #if QT_VERSION < QT_VERSION_CHECK(5,15,0)
16 #define errorOccurred error
17 #endif
18 
19 #define slxrand() (QRandomGenerator::system()->generate())
20 
21 QByteArray genSha1(const QByteArray *a, const QByteArray *b = nullptr, const QByteArray *c = nullptr, const QByteArray *d = nullptr, const QByteArray *e = nullptr);
22 
23 #endif /* UTIL_H_ */
QByteArray genSha1(const QByteArray *a, const QByteArray *b=nullptr, const QByteArray *c=nullptr, const QByteArray *d=nullptr, const QByteArray *e=nullptr)
Definition: util.cpp:13