diff --git a/CHANGELOG.md b/CHANGELOG.md index 4478277b9..ce481c06b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,10 +18,14 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format. ### Fixed -* `Faker.Util.pick/1` performance regression [[@aptinio][]] - ### Security +## 0.11.2 + +### Fixed + +* `Faker.Util.pick/1` performance regression [[@aptinio][]] & [[@elbow-jason][]] + ## 0.11.1 ### Changed @@ -236,12 +240,14 @@ Change log itself follows [Keep a CHANGELOG](http://keepachangelog.com) format. [@adam-wanninger]: https://github.com/adam-wanninger [@anthonator]: https://github.com/anthonator +[@aptinio]: https://github.com/aptinio [@bcat-eu]: https://github.com/bcat-eu [@belaustegui]: https://github.com/belaustegui [@cdesch]: https://github.com/cdesch [@ConnorRigby]: https://github.com/ConnorRigby [@devshane]: https://github.com/devshane [@efexen]: https://github.com/efexen +[@elbow-jason]: https://github.com/elbow-jason [@fenollp]: https://github.com/fenollp [@feyl]: https://github.com/feyl [@GesJeremie]: https://github.com/GesJeremie diff --git a/lib/faker/util.ex b/lib/faker/util.ex index 9945083a5..aac7d772a 100644 --- a/lib/faker/util.ex +++ b/lib/faker/util.ex @@ -22,10 +22,6 @@ defmodule Faker.Util do "2" """ @spec pick(Enum.t()) :: any - def pick(low..high) do - Faker.random_between(low, high) - end - def pick(enum) do Enum.at(enum, Faker.random_between(0, Enum.count(enum) - 1)) end diff --git a/mix.exs b/mix.exs index b24fc1af9..b13ca18a4 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Faker.Mixfile do use Mix.Project - @version "0.11.1" + @version "0.11.2" def project do [