Skip to content

Commit

Permalink
Remove deprecated :exs64 (#201)
Browse files Browse the repository at this point in the history
The minimum version of Elixir for StreamData is 1.12, which requires OTP 22+.
  • Loading branch information
davydog187 authored Oct 18, 2024
1 parent ccaf79b commit 7194d96
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/stream_data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,7 @@ defmodule StreamData do
"""
@opaque t(a) :: %__MODULE__{generator: generator_fun(a)} | atom() | tuple()

# TODO: remove once we depend on OTP 20+ since :exs64 is deprecated.
if String.to_integer(System.otp_release()) >= 20 do
@rand_algorithm :exsp
else
@rand_algorithm :exs64
end
@rand_algorithm :exsp

defstruct [:generator]

Expand Down

0 comments on commit 7194d96

Please sign in to comment.