Andrew James

Results 37 comments of Andrew James

[std::mt19937 is a default set of arguments for the mersenne twister engine](https://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine), `rng` is guaranteed to give the same sequence when (re-)initialised with the same seed. I believe that distributions...

The main changes in this PR are the addition of RandomEngine as a class in engine/random.hpp (and implementation of global functions in random.cpp), versioning namespaces, and updated test cases showing...

Added an example of how this could be used to make it easier to ensure code which relies on pseudo-random sequences is functioning correctly. This PR is already massive so...

The adjacency check currently bails if the search area contains a tile that isn't adjacent to an item, this causes the search to fail far quicker than necessary. I think...

> Woudn't that let you drop things in areas that are impossible to reach or on the other side of walls? Dropping on the other side of walls is only...

Can confirm this fixes #4124

Lets fix all these signed/unsigned comparisons 🙃

Benchmarking is not really feasible from my connection given the tests connect to real hosts. If you have a synthetic test case I can run that. I did see a...

> Some examples of urls that are considered blocked by robots.txt but shouldn't: > > * http://kimkelly.smugmug.com/photos/i-qjP8Qcb/0/L/i-qjP8Qcb-L.jpg -> 404, should be ok according to 2.3.1.3 http://kimkelly.smugmug.com/robots.txt has a default policy...

For reference the following page triggers mixed content warnings in Chrome 64.0.3282.186 on Windows 10 on at least 10 answers - https://codegolf.stackexchange.com/questions/102370/add-a-language-to-a-polyglot?answertab=oldest#tab-top Answer 4 is the first http tryitonline.net link....