Skip to content

Commit

Permalink
random/autotest: bumping number of trials to increase resiliency
Browse files Browse the repository at this point in the history
  * hammer test with randweib was failing about 0.29% of the time
  * increased number of random variables to 250,000 and tolerante to 0.15
  * re-ran hammer test with 50,000 trials without fail
  * ./xautotest -v -o autotest.json -R 1731176079 -H 1235 -c 50000
  • Loading branch information
jgaeddert committed Nov 10, 2024
1 parent 1580239 commit 98fafc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autotest/xautotest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007 - 2023 Joseph Gaeddert
* Copyright (c) 2007 - 2024 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions src/random/tests/random_autotest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007 - 2023 Joseph Gaeddert
* Copyright (c) 2007 - 2024 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand All @@ -23,8 +23,8 @@
#include "autotest/autotest.h"
#include "liquid.internal.h"

#define LIQUID_RANDOM_AUTOTEST_NUM_TRIALS (100000)
#define LIQUID_RANDOM_AUTOTEST_ERROR_TOL (0.1)
#define LIQUID_RANDOM_AUTOTEST_NUM_TRIALS (250000)
#define LIQUID_RANDOM_AUTOTEST_ERROR_TOL (0.15)

// uniform
void autotest_randf()
Expand Down

0 comments on commit 98fafc0

Please sign in to comment.