Christoph J. Scherr PlexSheep
  • Deutschland
  • https://www.cscherr.de
  • I study cybersecurity focused computer science at DHBW Mannheim, while working at NewTec.

  • Joined on 2023-04-16
PlexSheep merged pull request PlexSheep/numf#21 2024-05-23 13:25:16 +02:00
output a random number
PlexSheep commented on pull request PlexSheep/numf#21 2024-05-23 13:25:00 +02:00
output a random number

changes are okay, approved

PlexSheep closed issue PlexSheep/numf#23 2024-05-23 13:24:19 +02:00
test: add tests for the rand and rand_max flags
PlexSheep commented on issue PlexSheep/numf#23 2024-05-23 13:23:53 +02:00
test: add tests for the rand and rand_max flags

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…

PlexSheep commented on issue PlexSheep/numf#23 2024-05-23 13:22:08 +02:00
test: add tests for the rand and rand_max flags

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…

PlexSheep commented on issue PlexSheep/numf#23 2024-05-23 13:18:58 +02:00
test: add tests for the rand and rand_max flags

how to test for randomness?

PlexSheep opened issue PlexSheep/numf#23 2024-05-23 13:18:24 +02:00
test: add tests for the rand and rand_max flags
PlexSheep closed issue PlexSheep/numf#22 2024-05-23 13:16:54 +02:00
numf_parser panics with usize / does not compile with usize
PlexSheep commented on issue PlexSheep/numf#22 2024-05-23 13:15:51 +02:00
numf_parser panics with usize / does not compile with usize

This makes sense, as usize is guaranteed to be at least a 16 bit unsigned integer, but has no guaranteed max value. THerefore, in the future it could be larger than u128 (on 256-bit systems.).…

PlexSheep commented on issue PlexSheep/numf#22 2024-05-23 13:12:41 +02:00
numf_parser panics with usize / does not compile with usize

We have a test testing for this (parser_generics), but it does not test for usize. usize is the only affected unsigned int.

PlexSheep commented on issue PlexSheep/numf#22 2024-05-23 00:21:35 +02:00
numf_parser panics with usize / does not compile with usize

limitation in libpt, will need to fix upstream

PlexSheep opened issue PlexSheep/numf#22 2024-05-23 00:21:12 +02:00
numf_parser only uses u128 despite generic, panics with other types
PlexSheep pushed to feat/rand at PlexSheep/numf 2024-05-23 00:20:26 +02:00
3926be8aac Merge branch 'feat/rand' of https://git.cscherr.de/PlexSheep/numf into feat/rand
8fbc612f5a feat(rand): #19 #21 add max rand and use number parser
Compare 2 commits »
PlexSheep commented on pull request PlexSheep/numf#21 2024-05-23 00:00:48 +02:00
output a random number

add the option to specify length of those numbers with a long option

PlexSheep closed issue PlexSheep/numf#19 2024-05-22 23:59:17 +02:00
feat: add a csprng because why the fuck not
PlexSheep pushed to feat/rand at PlexSheep/numf 2024-05-22 23:59:11 +02:00
0923bf5247 feat(rand): add rand option to FormatOptions
PlexSheep created pull request PlexSheep/numf#21 2024-05-22 23:32:54 +02:00
WIP: output a random number
PlexSheep created branch feat/rand in PlexSheep/numf 2024-05-22 23:30:57 +02:00
PlexSheep pushed to feat/rand at PlexSheep/numf 2024-05-22 23:30:57 +02:00
PlexSheep opened issue PlexSheep/numf#20 2024-05-22 16:55:25 +02:00
feat: somehow guess the format if something is inputted without prefix