Add random pseudonym generation functionality#2
Merged
OpenMindUA merged 2 commits intomainfrom Apr 18, 2025
Hidden character warning
The head ref may contain hidden characters: "1-generating-\u0430-random-names"
Merged
Conversation
Added support for generating random pseudonyms when no seed is provided. Updated the README with usage examples and enhanced test coverage to validate the new functionality.
Closed
There was a problem hiding this comment.
Pull Request Overview
This PR adds random pseudonym generation functionality when no seed is provided. The key changes include:
- Modifying the pseudonym function to accept a None or empty seed and generate a random seed.
- Enhancing test coverage with new tests for random pseudonym generation.
- Updating the README with examples of using the random pseudonym feature.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/test_pseudomatic.py | Added tests to ensure pseudonym() behaves correctly when no seed is provided and is random. |
| pseudomatic/init.py | Updated pseudonym() to generate a random seed when input is None or empty. |
| README.md | Revised documentation to include examples for generating random pseudonyms. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added support for generating random pseudonyms when no seed is provided. Updated the README with usage examples and enhanced test coverage to validate the new functionality.