Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3 Implement string fakeit #27

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

the-murph37
Copy link

@the-murph37 the-murph37 commented Sep 18, 2023

@PumpkinSeed, attempting to learn Rust along with @bbejot. I saw in his PR that you are away for a bit, so feel free to get back to me whenever you're available.

Used the string.go file to try and head in the right direction. This is my first foray into Rust, so feel free to rip it apart.

@the-murph37 the-murph37 changed the title Issue #3 Implement string fakeit #3 Implement string fakeit Sep 18, 2023
@PumpkinSeed PumpkinSeed linked an issue Sep 20, 2023 that may be closed by this pull request
@PumpkinSeed
Copy link
Owner

Thanks for the PR @the-murph37, hope you enjoy playing with Rust :)

Yes I'm on holiday at the moment, but I will review it ASAP.

@@ -0,0 +1,171 @@
use rand::seq::SliceRandom;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't use rand package because the whole package using simplerand. It is because the rand package is an overkill for this library. Also if you are using rand package and I add the custom seed value functionality to the code-base (one of the requested feature), it won't work for string functions, because it will use the rand package's seed value.

Please use simplerand, or write a wrapper/helper function for that in the misc.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement string fakeit
3 participants