Comments (6)
If this hasn't been resolved yet, I'd like to try my luck with it.
from artichoke.
We should be able to use the rand crate to implement this in pure Rust.
from artichoke.
It's all yours @Elang89
One gotcha is you'll need to remove the SecureRandom
stub:
artichoke/artichoke-backend/src/extn/stdlib/stubs.rs
Lines 12 to 15 in 3d715c9
from artichoke.
We'll also probably need the uuid
crate with the v4
feature.
from artichoke.
It looks like this API is implemented in Ruby and selects a backend such as openssl. I think we can do better by implementing in pure Rust and avoiding an openssl dependency.
from artichoke.
Kernel#rand was implemented in GH-384.
from artichoke.
Related Issues (20)
- Time::set_utc doc test uses wrong api HOT 1
- Implement Encoding on `String` HOT 4
- Implement `String#end_with?` and `String#start_with?` in Rust
- `String#==` does not work the same way as MRI expects HOT 11
- `Time::checked_add_f64` and `Time::checked_sub_f64` panic on too large input HOT 2
- `Time::at` fails when when passing kwargs as second argument
- Implement `Time.utc` and `Time.local`
- Tests in `spec-runner/vendor/ruby` are not for MRI 3.1.2 HOT 2
- Build Rust crate for truncating floats to ints aka `RB_FIXABLE`
- Add support for `Regexp` needles to `String#byteindex` HOT 4
- `String#index` and `String#rindex` should return character offsets instead of byte offsets
- Add `byteindex` and `byterindex` methods to `spinoso-string`
- Add support for `Regexp` needles to `String#index` and `String#rindex` HOT 7
- Creating Time with `Time.utc` or `Time.local` should wrap 60 seconds around if not a valid leap second HOT 8
- spinoso-time error enum contains private, unreported types
- Parse difference with MRI for un-parenthesized method calls with an un-bracketed hash argument HOT 1
- scolapasta-path incorrectly mutates verbatim paths on Windows
- MatchData#offset returns byte offset instead of utf8 char offset for utf8 strings
- Dependabot cannot parse `rust-toolchain` file HOT 2
- Evaluate Profile-Guided Optimization (PGO) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artichoke.