Skip to content

Commit b329df7

Browse files
Update README.md with recent bug fixes and default seed value
1 parent 35b68bb commit b329df7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ use rand_xoshiro::Xoshiro256PlusPlus;
9393

9494
fn main() -> Result<(), Box<dyn std::error::Error>> {
9595
// Create a random number generator with a seed
96-
let mut rng = Xoshiro256PlusPlus::seed_from_u64(42);
96+
let mut rng = Xoshiro256PlusPlus::seed_from_u64(99);
9797

9898
// Create a random IFS
9999
let ifs = rand_sigma_factor_ifs(&mut rng);
@@ -106,7 +106,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
106106
ifs_name: "SigmaFactorIFS".to_string(),
107107
ndims: 2,
108108
rng_name: "Xoshiro256PlusPlus".to_string(),
109-
seed: 42,
109+
seed: 99,
110110
};
111111

112112
// Render the image
@@ -174,6 +174,14 @@ Key files to study:
174174
- `tests/integration_tests.rs`: Understand how to write effective tests
175175
- `.github/workflows/rust.yml`: Learn about CI/CD configuration
176176

177+
## Recent Updates
178+
179+
### Version 0.1.1 (March 8, 2025)
180+
181+
- **Bug Fix**: Fixed an issue where changing the seed value in the configuration file wasn't properly affecting the output image. The bug was in the `render_from_config` function where the RNG state wasn't being properly managed.
182+
- **Bug Fix**: Fixed color inconsistency between the basic example and the main program. Now both methods produce the same colors for the same seed.
183+
- **Change**: Updated the default seed value to 99 throughout the codebase.
184+
177185
## Performance
178186

179187
The library is optimized for performance:

0 commit comments

Comments
 (0)