From f92847e8c1b848b8b3bb67dbcdf151f159d0eddd Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Mon, 15 May 2023 10:22:58 +0200 Subject: [PATCH] Update seeds --- priv/repo/seeds.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/priv/repo/seeds.exs b/priv/repo/seeds.exs index 805d6068f..0e7133d15 100644 --- a/priv/repo/seeds.exs +++ b/priv/repo/seeds.exs @@ -102,7 +102,7 @@ geolocations = [ native_stats_range |> Enum.with_index() |> Enum.flat_map(fn {date, index} -> - Enum.map(0..:rand.uniform(500), fn _ -> + Enum.map(0..Enum.random(1..500), fn _ -> geolocation = Enum.random(geolocations) [ @@ -117,7 +117,7 @@ native_stats_range operating_system_version: to_string(Enum.random(0..15)), pathname: Enum.random(["/", "/login", "/settings", "/register", "/docs", "/docs/1", "/docs/2"]), - user_id: Enum.random(1..121) + user_id: Enum.random(1..1200) ] |> Keyword.merge(geolocation) |> then(&Plausible.Factory.build(:pageview, &1)) @@ -136,7 +136,7 @@ site = imported_stats_range |> Enum.flat_map(fn date -> - Enum.flat_map(0..:rand.uniform(500), fn _ -> + Enum.flat_map(0..Enum.random(1..500), fn _ -> [ Plausible.Factory.build(:imported_visitors, date: date,