Matteo De Carlo
fdc052b9f9
Fixing broken hashmaps on linux
...
Fixes #414
The issue is caused by Linux (and possibly other platforms) implementing the hash function as an identify function for data smaller than 64bit (including `int`).
Fixing only the TerrainGenerator is possible, but the issue could be generated again elsewhere and it would be quite difficult to identify and debug.
Therefore the proposed solution is to replace the `wi::unordered_map` on Linux with another implementation which is still quite fast and does account for the issue of the identify hash function.
The library is https://github.com/martinus/robin-hood-hashing (MIT License)
robin_hood.h:768
```
// return mixed of that, to be safe against identity hash
```
2022-08-20 23:02:41 +02:00
..
2022-06-04 11:41:32 +02:00
2022-07-28 20:59:25 +02:00
2022-07-21 10:49:24 +02:00
2022-04-10 11:42:10 +02:00
2022-06-29 20:15:36 +02:00
2022-08-15 14:14:09 +02:00
2022-08-14 22:46:54 +02:00
2022-08-20 18:32:16 +02:00
2022-08-20 18:32:16 +02:00
2022-08-19 08:43:10 +02:00
2022-08-19 08:43:10 +02:00
2022-08-15 18:59:47 +02:00
2022-07-31 19:28:41 +02:00
2022-08-20 18:32:16 +02:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-08-19 08:43:10 +02:00
2022-08-19 08:43:10 +02:00
2022-08-20 18:32:16 +02:00
2022-08-20 18:32:16 +02:00
2022-02-19 12:54:52 +01:00
2022-08-20 18:32:16 +02:00
2022-08-20 18:32:16 +02:00
2022-06-04 11:41:32 +02:00
2017-09-30 16:08:23 +01:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-07-28 20:59:25 +02:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-08-20 18:32:16 +02:00
2022-08-19 08:43:10 +02:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-08-20 18:32:16 +02:00
2022-07-28 20:59:25 +02:00
2022-08-14 22:46:54 +02:00
2022-07-28 20:59:25 +02:00
2021-02-22 00:15:42 +01:00
2022-07-31 19:28:41 +02:00
2022-07-14 15:21:28 +02:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-08-20 18:32:16 +02:00
2022-08-20 18:32:16 +02:00
2020-10-05 00:03:22 +02:00
2022-07-31 19:28:41 +02:00
2022-07-31 19:28:41 +02:00
2022-08-19 11:07:02 +02:00
2022-08-19 11:07:02 +02:00
2022-08-15 14:14:09 +02:00
2022-07-14 15:21:28 +02:00
2022-08-17 16:09:31 +02:00
2022-04-24 14:32:36 +02:00
2021-12-03 21:22:27 +01:00
2022-08-14 22:46:54 +02:00
2022-07-28 20:59:25 +02:00
2022-08-18 11:50:09 +02:00
2022-07-14 15:21:28 +02:00
2022-08-20 18:32:16 +02:00
2022-08-19 08:43:10 +02:00
2020-05-11 01:20:58 +01:00
2022-02-19 12:54:52 +01:00
2022-08-20 18:32:16 +02:00
2022-08-10 10:46:18 +02:00
2017-09-30 16:08:23 +01:00
2022-06-04 11:41:32 +02:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-08-17 16:09:31 +02:00
2022-08-17 16:09:31 +02:00
2022-04-23 09:50:46 +02:00
2020-05-08 23:38:34 +01:00
2019-05-10 18:26:05 +01:00
2017-09-30 16:08:23 +01:00
2022-08-09 18:49:18 +02:00
2022-08-20 23:02:41 +02:00
2022-08-15 14:14:09 +02:00
2018-08-17 18:02:05 +01:00
2022-07-31 19:28:41 +02:00
2022-07-28 20:59:25 +02:00
2022-07-31 19:28:41 +02:00
2022-07-31 19:28:41 +02:00
2022-08-19 08:43:10 +02:00
2022-08-14 22:46:54 +02:00
2020-04-28 19:57:48 +01:00
2020-04-28 19:57:48 +01:00