Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid usage of tmpnam() for creating random filename #246

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Jul 11, 2023

Public-Facing Changes

Avoid usage of tmpnam() for creating random filename

Description

Follow up of #232. ROS build farm complained about usage of tmpnam. This PR replaces it by using the epoch time in milliseconds to create a somewhat random filename (used for tests only)

https://build.ros2.org/job/Idev__foxglove_bridge__ubuntu_jammy_amd64/9/

@achim-k achim-k requested a review from jtbandes July 11, 2023 15:05
Copy link
Member

@jtbandes jtbandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not mkstemp as recommended in the lint error?

@achim-k
Copy link
Collaborator Author

achim-k commented Jul 11, 2023

Why not mkstemp as recommended in the lint error?

Not available under windows. Not a target OS, but it would be good if we could keep foxglove bridge building with robotstack.

@achim-k achim-k merged commit 3933554 into main Jul 11, 2023
8 checks passed
@achim-k achim-k deleted the achim/avoid-tmpnam-random-filenames branch July 11, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants