Skip to content

Commit

Permalink
Fix error "The date is not valid." in SetDefaultSeed (#444)
Browse files Browse the repository at this point in the history
#### Summary
Time-0T will throw an error.

#### Work Item(s)

Fixes
[AB#495083](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/495083)
  • Loading branch information
JesperSchulz authored Dec 20, 2023
1 parent 5c227f4 commit e3704eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ codeunit 130500 "Any"
procedure SetDefaultSeed()
begin
SeedSet := true;
SetSeed(Time() - 0T);
SetSeed(Time() - 000000T);
end;

/// <summary>.
Expand All @@ -270,4 +270,4 @@ codeunit 130500 "Any"

exit(Random(MaxValue));
end;
}
}

0 comments on commit e3704eb

Please sign in to comment.