mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-27 08:24:39 -07:00
Password salts and activation tokens were generated with the global SFMT RNG, which was seeded from a 32-bit timestamp, making registration salts and activation tokens predictable. The game RNG used the same timestamp seed across restarts. Add CryptoUtil backed by OpenSSL RAND_bytes and use it for salt/token generation and to seed RNG_SFMT with a 64-bit CSPRNG value in both the client and server. Link libcockatrice_utility against OpenSSL::Crypto. Took 30 seconds Took 25 minutes
17 lines
397 B
Docker
17 lines
397 B
Docker
FROM fedora:43
|
|
|
|
RUN dnf install -y \
|
|
ccache \
|
|
cmake \
|
|
gcc-c++ \
|
|
git \
|
|
mariadb-devel \
|
|
ninja-build \
|
|
openssl-devel \
|
|
protobuf-devel \
|
|
qt6-{qtdeclarative,qtshadertools,qttools,qtsvg,qtmultimedia,qtwebsockets}-devel \
|
|
qt6-qtimageformats \
|
|
rpm-build \
|
|
xz-devel \
|
|
zlib-devel \
|
|
&& dnf clean all
|