nowfound

Life & fun · alternatives · 2026

24 alternatives to Polyfill for random_bytes() and random_int() in PHP 5 projects

PHP 5.x support for random_bytes() and random_int() - paragonie/random_compat

Below are 24 products that do a similar job, ranked by how close each is in meaning and then by launch-day votes. Polyfill for random_bytes() and random_int() in PHP 5 projects launched in 2015; newer entries below may have overtaken it.

  1. 1

    🐕 Bare minimum 500b fetch polyfill. Contribute to developit/unfetch development by creating an account on GitHub.

    2017 · github.com · its alternatives →

  2. 2

    Cool trick to store 4 5-bit values in one 16-bit value. - jaamesd/BucketCompressionTrick

    2018 · github.com · its alternatives →

  3. 3

    Learn to parse, manage, and manipulate multibyte PHP strings

    2022 · leanpub.com · its alternatives →

  4. 4

    Advanced Bloom Filter Based Algorithms for Efficient Approximate Data De-Duplication in Streams - jparkie/PDD

    2016 · github.com · its alternatives →

  5. 5

    Pure PHP polyfill for ext/sodium. Contribute to paragonie/sodium_compat development by creating an account on GitHub.

    2017 · github.com · its alternatives →

  6. 6

    The fastest 128-bit and 256-bit hash, passes all tests, and under 140 source lines of code. API library and CLI tool in C++ and NodeJS/Wasm - DOSAYGO-STUDIO/rain

    2024 · github.com · its alternatives →

  7. 7

    I want to share a really dumb, but very practical project I have packaged this summer, to perform operations on strings much faster. I was using Python to work with a multi-terabyte newline-delimited file. Reading, splitting, and shuffling it was a nightmare. So, I wrapped a trivial hardware-friendly heuristic I've been using for the last few years into a CPython library. The part I enjoyed the most is implementing SIMD behavior without SIMD instructions... Using 64-bit words to work at 8-bit granularity. Unlike conventional SIMD, the code would remain the same for ~~almost~~ any hardware.…

    2023 · ashvardanian.com · its alternatives →

  8. 8

    Provides a Kotlin/Java library to create a random json string - mangatmodi/RandomJson

    2019 · github.com · its alternatives →

  9. 9

    the JS/Node.JS library for encoding complex and unconventional data structures. Support for BigInts, TypedArrays, null, undefined, and Symbol. Multiple flavors available. - DO-SAY-GO/WeirdJSON

    2020 · github.com · its alternatives →

  10. 10

    Wrapper library to fix inconsistencies in PHP's core functions - nkkollaw/zubr

    2017 · github.com · its alternatives →

  11. 11

    LoopMix128 is a fast C PRNG I wrote for non-cryptographic tasks. GitHub (MIT): https://github.com/danielcota/LoopMix128 Highlights: * ~0.37 ns/value (GCC 11.4, -O3 -march=native), 98% faster than xoroshiro128++ and PCG64. * Passes TestU01 BigCrush & PractRand (32TB). * Guaranteed 2^128 period. * Proven injective (192-bit state) via Z3 SMT solver; allows parallel streams. * Core requires only stdint.h. Seeking feedback on design, use cases, or further testing.

    2025 · github.com · its alternatives →

  12. 12

    Morning HN. Random number generation feels is a somewhat underrepresented topic in the C++ realm. There is a lot of questionable info about it found online and even the standard library is quite behind the times in terms of it's algorithms. It suffers from trying to accommodate sometimes impractical standard requirements and has several ways of getting significantly bad statistical results. This leaves a lot easily achievable performance & quality on the table. So, being a mathematician who mostly works with stochastic models and wants these models to run fast and well, I embarked on a…

    2025 · github.com · its alternatives →

  13. 13

    Try running a query anywhere from PostgreSQL to DuckDB without leaving your browser.

    2023 · codapi.org · its alternatives →

  14. 14

    Functors, Applicative Functors and Monads in PHP. Contribute to widmogrod/php-functional development by creating an account on GitHub.

    2015 · github.com · its alternatives →

  15. 15

    Properties of a Novel Binary Representation of Integers using Base-𝜙 - irradix/paper.md at main · DOSAYGO-STUDIO/irradix

    2024 · github.com · its alternatives →

  16. 16

    Embeddable minimal in-memory GZIP decompression library for embedded systems - wkoszek/mini_gzip

    2015 · github.com · its alternatives →

  17. 17AS

    Took a stab at building my own string diffing JS package. I built an interactive demo for TypeIt’s website (https://typeitjs.com/build-your-own) a while back. The approach I took to handle user input necessitated a way to calculate the difference between the versions of a user’s text input. I searched around for a package to help me out and found a couple of good ones (like fast-diff), but I either didn’t really like their API or didn’t want to take on a huge new dependency. Instead, I thought I’d give it a shot myself (famous last words). I dove into it having no real formal…

    2022 · its alternatives →

  18. 18PJ
  19. 19

    Make your PHP arrays sweet'n'safe. Save your mental energy on type casting. - zakirullin/mess

    2020 · github.com · its alternatives →

  20. 20EP

    The eno notation language[1] now also has an official PHP library: https://eno-lang.org/php/ It features the same API and featureset as the JavaScript / Python / Ruby libraries, and also comes with the same extensive testsuite that has been growing during implementation of the other libraries, with already well over 90% coverage at the time of release. Happy to hear your feedback and answer any questions! [1] A user-friendly format for file-based content: https://eno-lang.org/

    2018 · its alternatives →

  21. 21

    I wanted to see how much simpler native code integration has become with GraalVM's polyglot, when compared to JNI. It's less than 100 lines all up (including the POM). (I feel kinda stupid posting a "hello world" to HN, but this is a hell of an improvement.) Linux only at the moment.

    2023 · github.com · its alternatives →

  22. 22

    This brand new secure diffchecker. It's supports text/code diff upto 25k lines with character level diff all in browser. Supports one of the best inhouse diff merge feature. https://diffchecker.dev/ Now, add list diff - to compare two lists and show unique, common and diff between two lists. https://diffchecker.dev/list/ Add json diff, supports semantic json difference. https://diffchecker.dev/json/ With consistent, clean, minimal UI elements. Would you switch from other websites. Please checkout and provide feedback.

    Nov 2025 · diffchecker.dev · its alternatives →

  23. 23

    Datasino is a command line tool that can come handy when load testing a service or database. Give it a data schema (many compound types supported, including recursive types), an encoding (JSON, CSV or ClickHouse) and a target (a file or a Kafka partition) and a data rate and it will generate a reasonably optimized (native code) random data source. See the top of the README for some examples. If you have any ideas on how to extend this tool so that it's useful to more people, please let me know.

    2022 · github.com · its alternatives →

  24. 24

    A variant of include_bytes!/include_str! with compile-time deflation and runtime lazy inflation. (WARNING: the final compressed size may be larger with double compression!) - SOF3/include-flate

    2019 · github.com · its alternatives →

Also compare

Ranked by how close each launch is in meaning, then by votes. Prices were read from each product’s own site when checked and can change. Refine with your own description →