зеркало из https://github.com/mozilla/gecko-dev.git
94a31a8931
<!-- Please describe your changes on the following line: --> This PR implements an in-memory random number generator that only uses an OS RNG for (re)seeding. The OS RNG is shared, so there's only one file descriptor for `/dev/urandom` being used. The PR also implements a tidy check that we don't accidentally introduce an RNG. Rather annoyingly, there are a lot of transitive dependencies on `rand`, notably hash maps in `std`. This PR makes it possible to use uuids for identifiers such as pipeline and frame ids. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes do not require tests because it's fixing a resource issue <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 36ddf763f66b1b971db07649ff5c69b2e9fd5f91 |
||
---|---|---|
.. | ||
servo_tidy | ||
servo_tidy_tests | ||
HISTORY.rst | ||
Makefile | ||
README.rst | ||
setup.py |
README.rst
servo_tidy ========== Servo's code and license checker. Install from PyPI (coming soon) or ``` pip install -e git+https://github.com/servo/servo.git#egg=servo_tidy&subdirectory=python/tidy ``` To run the tests ++++++++++++++++ ``` ./mach test-tidy --self-test ```