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

V1: Add an instance for the new SeedGen type class #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lehins
Copy link
Contributor

@lehins lehins commented Jan 6, 2025

This is the first potential version, while the second version is in #98

This version is faster, since it does not have to rely on intermediate list structure and utilizes some of the vector unsafe functionality to achieve that. It also requires a newer version of vecotr, since it was only in vector-0.10.12 that constructor for primitive Vector was exported.

The down side of this approach is that a seed that is stored on a big endian machine will not read the same on a little endian machine and vise versa. This is not a problem for the approach take n #98

@lehins lehins force-pushed the lehins/add-random-seed-instance branch 2 times, most recently from 998989a to 12d6e48 Compare January 7, 2025 19:03
@lehins lehins force-pushed the lehins/add-random-seed-instance branch from 12d6e48 to 9bdbc18 Compare January 7, 2025 19:32
@lehins lehins changed the title Add random seed instance Add an instance for the new SeedGen type class Jan 7, 2025
@lehins lehins changed the title Add an instance for the new SeedGen type class V1: Add an instance for the new SeedGen type class Jan 7, 2025
@lehins lehins marked this pull request as ready for review January 7, 2025 19:47
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.

1 participant