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
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 2024-05-23 13:24:17 +02:00
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
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.