Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
isidroas committed Jun 9, 2024
1 parent ebbec28 commit 931f15c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@ A didactic implementation of the Fortuna cryptographically secure pseudorandom n
Examples only tested in Linux, but they should work also in macOS.

```
pip install .
python example.py
$ pip install .
$ python example.py
(fortuna)
(fortuna) help
Documented commands (type help <topic>):
========================================
add_entropy help random
Undocumented commands:
======================
EOF print_pools print_seed_file update_seed_file
(fortuna)
```

![screenshot](./docs/screenshot.png)
Expand Down
Binary file modified docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/screenshot_terminal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ for i in {1..10}; do
xdotool type -window $RXVTWINDOWID a
done
done
# xdotool type -window $RXVTWINDOWID 0
xdotool key -window $RXVTWINDOWID ctrl+c

xdotool type -window $RXVTWINDOWID add_entropy
Expand All @@ -64,6 +63,7 @@ sleep 0.1
import -window $RXVTWINDOWID /tmp/out.png

# https://imagemagick.org/script/command-line-options.php#trim
/tmp/ImageMagick/utilities/magick /tmp/out.png -define trim:edges=south -trim $(dirname $0)/screenshot.png
# you need a more recent version than 'ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25' for the trim:edges
convert /tmp/out.png -define trim:edges=south -trim $(dirname $0)/screenshot.png

kill %1

0 comments on commit 931f15c

Please # to comment.