Files
Paper/Spigot-Server-Patches
stonar96 c348e498ba Make engine-mode 2 truly random
Up to now a simple counter variable was used to iterate through the
hidden-blocks in engine-mode 2 while obfuscating. This results in low
quality obfuscation.

One could for example easily write a hack, which bypasses Anti-Xray
by not showing ores, which have a certain pattern.

Furthermore, engine-mode 1 is slightly optimized by this commit.
However, engine-mode 2 is probably somewhat slower. I did some tests but
I wasn't able to get stable results for some reason. Therefore this
needs further testing.

An optimized random algorithm is utilized to pick random blocks from the
hidden-blocks list. This implementation uses xorshift and integer
multiplication for bounding. The resulting distribution is negligibly
biased because xorshift doesn't generate 0 and integer multiplication
also implies biased results.
2020-08-07 04:26:01 +02:00
..
2020-06-25 06:11:48 -07:00
2020-08-24 22:22:08 -04:00
2020-08-25 13:30:52 +01:00
2020-06-25 05:04:34 -07:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00
2020-06-24 21:10:30 -04:00
2020-08-24 22:22:08 -04:00
2020-06-25 04:00:35 -07:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00
2020-06-25 06:11:48 -07:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00
2020-08-24 22:22:08 -04:00