diff --git a/test/support/fixtures/records_fixtures.ex b/test/support/fixtures/records_fixtures.ex index aecf2c78..b6f8afca 100644 --- a/test/support/fixtures/records_fixtures.ex +++ b/test/support/fixtures/records_fixtures.ex @@ -95,6 +95,9 @@ defmodule MusicLibrary.RecordsFixtures do |> record_fixture() end + # The following functions have been lifted from `Ecto.UUID`'s source. + # The purpose is to provide a deterministic implementation of uuid generation + # that can be used in tests to generate the same artist uuid. defp artist_uuid(name) do <> = :crypto.hash(:md5, name) encode(<>)