Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libc/gen



Module Name:    src
Committed By:   riastradh
Date:           Mon Mar 10 21:21:32 UTC 2025

Modified Files:
        src/lib/libc/gen: arc4random.c

Log Message:
arc4random(3): Add self-tests for PRNG algorithm.

Independently generated by running:

head -c 64 </dev/zero \
| openssl enc -chacha -20 \
  -K 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f \
  -iv -iv 00000000000000000000000000000000 \
| hexdump -C

and then repeating with the first 32 bytes of output as the updated
key for -K, extracting bytes [32, 32 + n) for the n-byte output in
each call.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/lib/libc/gen/arc4random.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index