MeteoNook icon indicating copy to clipboard operation
MeteoNook copied to clipboard

Replace unsafe shooting star functions with iterator

Open panicbit opened this issue 3 years ago • 0 comments

The current shooting star functions (query_stars, get_star_second) unsafely use a global mutable static array (LAST_STAR_SECONDS). This is not a real issue for usage on the website, but it is an issue for the project that I'm currently working on.

This PR replaces those functions with a safe iterator :smiley:.

panicbit avatar Jul 25 '22 21:07 panicbit