test: add tests for the rand and rand_max flags #23

Closed
opened 2024-05-23 13:18:24 +02:00 by PlexSheep · 3 comments
Owner

see #21 #19

see #21 #19
PlexSheep added the
Kind/Testing
Priority
High
Reviewed
Confirmed
labels 2024-05-23 13:18:24 +02:00
Author
Owner

how to test for randomness?

how to test for randomness?
Author
Owner

Testing that the csprng produces randomness of a good statistically (secure) distribution is out of scope. We cant supply a seed either as we use OsRng. We can test that the random values are in a certain range.

Testing that the csprng produces randomness of a good statistically (secure) distribution is out of scope. We cant supply a seed either as we use `OsRng`. We can test that the random values are in a certain range.
Author
Owner

Correction: we just push some random numbers in the main function, testing that would be a waste of time (and weird, since we'd need to move that part to a new function). Is there actually anything to be tested?

Correction: we just push some random numbers in the main function, testing that would be a waste of time (and weird, since we'd need to move that part to a new function). Is there actually anything to be tested?
PlexSheep added
Reviewed
Invalid
and removed
Reviewed
Confirmed
labels 2024-05-23 13:24:17 +02:00
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PlexSheep/numf#23
No description provided.