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.2.0 Additions #1

Merged
merged 9 commits into from
Mar 2, 2023
Merged

v1.2.0 Additions #1

merged 9 commits into from
Mar 2, 2023

Conversation

dicksonlaw583
Copy link
Owner

@dicksonlaw583 dicksonlaw583 commented Feb 16, 2023

  • Change xrandom_get_seed to return a clone of the seed by default, so that code like the following works just as it does without the x prefix:
// Remember the seed
var seed = xrandom_get_seed();

/* Some randomization actions here */

// Restore the seed
xrandom_set_seed(seed);
  • Use xrandom_get_seed(true) to return the global seed directly (i.e. old default behaviour)
  • Change xarray_shuffle to match 2022.11's array_shuffle(array, [offset], [length]) built-in function, returning a shuffled copy of the array or a slice of it. This is a breaking change --- the in-place shuffling behaviour has been moved to xarray_shuffle_ext as per 2022.11 convention.
  • Add xarray_shuffle_ext to match 2022.11's array_shuffle_ext(array, [offset], [length]) built-in function. This is where the old xarray_shuffle in-place shuffling behaviour has been moved to.

@dicksonlaw583 dicksonlaw583 merged commit 05685f9 into main Mar 2, 2023
@dicksonlaw583 dicksonlaw583 deleted the dev-1-2-0 branch March 2, 2023 03:42
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.

None yet

1 participant