Skip to content

Commit 3cb0c3d

Browse files
committed
Seed prim demo for stable test output
1 parent 29251d9 commit 3cb0c3d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Tests/vgerTests/vgerTests.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ static void textAt(vgerContext vger, float x, float y, const char* str) {
495495

496496
- (void) testPrimDemo {
497497

498+
// Match the baseline regardless of earlier tests that also consume rand().
499+
srand(1);
500+
498501
auto cyan = float4{0,1,1,1};
499502
auto magenta = float4{1,0,1,1};
500503

0 commit comments

Comments
 (0)