We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
padding: false
Base.encode64/2
1 parent f4ee4a0 commit de02e44Copy full SHA for de02e44
installer/lib/phx_new/generator.ex
@@ -449,7 +449,7 @@ defmodule Phx.New.Generator do
449
defp phoenix_js_path(path), do: "../../#{path}/"
450
451
defp random_string(length),
452
- do: :crypto.strong_rand_bytes(length) |> Base.encode64() |> binary_part(0, length)
+ do: :crypto.strong_rand_bytes(length) |> Base.encode64(padding: false) |> binary_part(0, length)
453
454
# In the context of a HEEx attribute value, transforms a given message into a
455
# dynamic `gettext` call or a fixed-value string attribute, depending on the
0 commit comments