Skip to content

Commit

Permalink
remove modified from faker seed
Browse files Browse the repository at this point in the history
  • Loading branch information
civsiv committed Mar 13, 2024
1 parent 8971395 commit b3fb02d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Examples/BookingSystem.AspNetCore/Feeds/FacilitiesFeeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected override async Task<List<RpdeItem<FacilityUse>>> GetRpdeItems(long? af
.SelectMulti<FacilityUseTable, SellerTable>(q)
.Select(result =>
{
var faker = new Faker() { Random = new Randomizer(((int)result.Item1.Modified + (int)result.Item1.Id)) };
var faker = new Faker() { Random = new Randomizer((int)result.Item1.Id) };
var isGoldenRecord = faker.Random.Bool();

return new RpdeItem<FacilityUse>
Expand Down Expand Up @@ -253,7 +253,7 @@ protected override async Task<List<RpdeItem<Slot>>> GetRpdeItems(long? afterTime
.Take(RpdePageSize)
.Select(x =>
{
var faker = new Faker() { Random = new Randomizer(((int)x.Modified + (int)x.Id)) };
var faker = new Faker() { Random = new Randomizer((int)x.Id) };
return new RpdeItem<Slot>
{
Kind = _appSettings.FeatureFlags.FacilityUseHasSlots ? RpdeKind.FacilityUseSlot : RpdeKind.IndividualFacilityUseSlot,
Expand Down
2 changes: 1 addition & 1 deletion Examples/BookingSystem.AspNetCore/Feeds/SessionsFeeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected override async Task<List<RpdeItem<SessionSeries>>> GetRpdeItems(long?
{
var intt = (int)result.Item1.Modified;

var faker = new Faker() { Random = new Randomizer(((int)result.Item1.Modified + (int)result.Item1.Id)) };
var faker = new Faker() { Random = new Randomizer((int)result.Item1.Id) };
// here we randomly decide whether the item is going to be a golden record or not by using Faker
// See the README for more detail on golden records.
var isGoldenRecord = faker.Random.Bool();
Expand Down

0 comments on commit b3fb02d

Please sign in to comment.