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

Remove Random123 as a sub-module #87

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ name = "RandomNumbers"
uuid = "e6cf234a-135c-5ec9-84dd-332b85af5143"
author = ["Sunoru <[email protected]>"]
repo = "https://github.com/JuliaRandom/RandomNumbers.jl.git"
version = "1.5.3"
version = "1.6.0"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"

[compat]
Requires = "1"
julia = "1"

[extras]
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ There are four RNG families in this package:
A class of RNG based on *exclusive or* and *bit shift*.

Note that `Random123` is now made a separate package as [Random123.jl](https://github.com/JuliaRandom/Random123.jl).
You can still use your old code with `RandomNumbers.Random123` as long as you import `Random123` manually.

## Usage

Expand Down
6 changes: 3 additions & 3 deletions docs/src/man/random123.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Random123 Family

```@meta
CurrentModule = RandomNumbers.Random123
CurrentModule = Random123
DocTestSetup = quote
using RandomNumbers.Random123
using Random123
end
```

Expand Down Expand Up @@ -69,7 +69,7 @@ For detailed usage of each RNG, please refer to the [library docs](@ref Random12

To use Random123, firstly import the module:
```julia
julia> using RandomNumbers.Random123
julia> using Random123
```

Take `Philox4x64` for example:
Expand Down
10 changes: 1 addition & 9 deletions src/RandomNumbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ This module exports two types and four submodules:
- [`WrappedRNG`](@ref)
- [`PCG`](@ref)
- [`MersenneTwisters`](@ref)
- [`Random123`](random123.md#Random123.Random123)
- [`Xorshifts`](@ref)
"""
module RandomNumbers

export AbstractRNG
export WrappedRNG
export output_type, seed_type
export PCG, MersenneTwisters, Random123, Xorshifts
export PCG, MersenneTwisters, Xorshifts

include("common.jl")
include("utils.jl")
Expand All @@ -31,11 +30,4 @@ module RandomNumbers

export randfloat
include("randfloat.jl")

import Requires
function __init__()
# The code of Random123 has been moved to Random123.jl
Requires.@require Random123="74087812-796a-5b5d-8853-05524746bad3" import .Random123
end

end
Loading