
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
cryptorandom
Advanced tools
Pseudorandom number generator and random sampling using cryptographic hash functions
|PyPI| |Build Status| |Coverage Status|
Pseudorandom number generator and random sampling using cryptographic hash functions. The prototype generator is built on SHA-256.
::
$ pip install cryptorandom
Install dependencies using:
::
$ pip install -r requirements.txt
Then, install cryptorandom using:
::
$ pip install .
If you plan to develop the package, you may run it directly from source:
::
$ pip install -e . # Do this once to add pkg to Python path
See the file LICENSE for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.
.. |PyPI| image:: https://img.shields.io/pypi/v/cryptorandom.svg :target: https://pypi.org/project/cryptorandom/ .. |Build Status| image:: https://github.com/statlab/cryptorandom/workflows/test/badge.svg?branch=main :target: https://github.com/statlab/cryptorandom/actions?query=workflow%3A%22test%22 .. |Coverage Status| image:: https://codecov.io/gh/statlab/cryptorandom/branch/main/graph/badge.svg :target: https://app.codecov.io/gh/statlab/cryptorandom/branch/main
FAQs
Pseudorandom number generator and random sampling using cryptographic hash functions
We found that cryptorandom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.