getrandom
nanorand-rs
Our great sponsors
getrandom | nanorand-rs | |
---|---|---|
8 | 8 | |
254 | 221 | |
2.0% | - | |
7.0 | 3.5 | |
12 days ago | 3 months ago | |
Rust | Rust | |
Apache License 2.0 | zlib License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
getrandom
-
We have getrandom at home
The crypto source in Go is great, no complaints there. Lints like gosec even recommend using it when generating crypto entropy. Go did a good job here, and I expect Rust will do the same sometime after getrandom reaches 1.0 so the API questions are settled, plus whatever makes sense for the future-proofing the standard library needs.
-
Fellow Rust enthusiasts: What "sucks" about Rust?
I would wait for the getrandom crate to reach 1.0, which will answer many of the questions around what an API like this can look like, and then maybe the standard library discussion will be on firmer footing because at least we'll know what API we want to immortalize. Rushing that now just to save people importing a small crate does not seem to be the way to go.
-
Introduction to Random Number Generation in Rust
I'd caution against using /dev/random directly, and instead recommend using getrandom. It's effectively the same thing on Haiku and Redox, but is cross-platform and will upgrade to better sources on various platforms as available (such as using the getrandom() call on Linux and Android, or getentropy() on macOs, if avaialable).
-
Alea: fast and easy random number generation in Rust
getrandom
-
Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun
It's a default, but overwritable behavior, see the #[path] attribute. You still have to create N files for each supported platform, but at the top level you will see only one module. On of the crates which uses this approach in practice is getrandom.
-
String, Vec<T>, Box<T>, Rc<T>... could be moved from alloc to core
IIUC the main problem which prevents from moving HashMap & co to alloc is lack of API to get system entropy which is required for DOS protection. Ideally we would have a #[global_allocator]-like functionality for retrieving system entropy. Relevant issue: https://github.com/rust-random/getrandom/issues/21
nanorand-rs
-
Your users deserve a real CSPRNG
I'll likely make a nice RNG library once FFIv2 is released - I do know quite a bit about RNGs :P
-
Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.67]
nanorand: Zero (required) dependency RNG library for Rust, using WyRand, PCG64, and ChaCha. asar-rs: Crate to read and write asar archives, commonly used in Electron applications. tracing-oslog: Crate to output tracing logs to the macOS/iOS os_log system. encrypted-ref: Fun lil' project which creates "encrypted" versions of Rc and Arc, which encrypt the pointers in memory. sweetpaste: "Sweet n' simple" pastebin program. Uses no JS, everything is rendered server-side. twitch-chat-logger: Logs public twitch chat to a SQL database, and exposes it through a public API. chippy: For-fun CHIP-8 emulator I made, with incomplete CHIP-48 and SUPER-CHIP support. otpee: Generic HOTP/TOTP library I made. (Generic as in... it uses generics for the hashing algorithms) xpc-serde: Serde (De)serializer for XPC communication on macOS/iOS. xenon-ios: Jailbroken iOS tweak which allows for easy file transfer between an iOS device and PC.
-
Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.64]
Open Source Work: twitch-chat-logger, nanorand, asar-rs, sweetpaste, xpc-serde, encrypted-ref, otpee, tracing-oslog
- nanorand 0.7 is out! (Fast randomness library with ZERO required dependencies)
-
Alea: fast and easy random number generation in Rust
nanorand
-
nanorand v0.6 is out!
RandomGen will no longer panic if lower > upper (#24)
-
Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.53]
Some interesting open source Rust projects I've worked on are nanorand, PongoKit, and Xenon.
What are some alternatives?
pollster - A minimal async executor that lets you block on a future
astro-float - Arbitrary precision floating point numbers library
rust-delegate - Rust method delegation with less boilerplate
xenon - The public source and documentation for Xenon iOS tweak.
gosec - Go security checker
encrypted-ref - Encrypting references in Rust for stupid reasons.
dislike-in-rust - A list of the few things I don't like about rust
sweetpaste - A sweet n' simple pastebin with syntax highlighting and no client-side code!
rand - A Rust library for random number generation.
resume - my resume
rust-orphan-rules - An unofficial, experimental place for documenting and gathering feedback on the design problems around Rust's orphan rules
twitch-chat-logger - A simple bot that constantly logs Twitch chat to a database