mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
normal uses variance, not sd
This commit is contained in:
parent
7160433c33
commit
ec1a999913
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ defmodule PhilomenaWeb.CurrentBanPlug do
|
|||
defp discourage?(%{note: note}) when is_binary(note), do: String.contains?(note, "discourage")
|
||||
defp discourage?(_ban), do: false
|
||||
|
||||
defp normal_time, do: trunc(:rand.normal(10_000, 5_000))
|
||||
defp normal_time, do: :rand.normal(5_000, 25_000_000) |> trunc() |> max(0)
|
||||
defp error?, do: :rand.uniform() < 0.05
|
||||
|
||||
defp pass(false, conn), do: conn
|
||||
|
|
Loading…
Reference in a new issue