kr_random_coin: do not crash on invalid values

30 jobs for <span class="ref-name">random-gnutls</span> in 26 minutes and 8 seconds (queued for 11 seconds)
Status Job ID Name Coverage
  Build
passed #204741
docker linux amd64
build:clang:linux:amd64

00:00:45

passed #204740
docker linux amd64
build:linux:amd64

00:00:46

passed #204742
docker linux amd64 allowed to fail
srpm

00:00:24

 
  Test
passed #204750
docker linux amd64
deckard:linux:amd64

00:01:27

passed #204758
privileged
distro:epel-7

00:02:01

passed #204757
privileged
distro:fedora-29

00:02:49

passed #204749
docker
doc

00:00:46

passed #204747
dind
docker:build

00:02:11

passed #204748
docker linux amd64
installcheck:linux:amd64

00:00:58

passed #204751
docker linux amd64
installcheck:valgrind:linux:amd64

00:01:54

passed #204744
docker
lint:c

00:02:17

passed #204745
docker
lint:clang-scan-build

00:01:02

passed #204743
docker
lint:lua

00:00:30

passed #204752
docker
osx:build

00:02:34

passed #204754
docker linux amd64
pytests:lint

00:00:35

passed #204755
docker linux amd64
pytests:run

00:01:44

passed #204756
docker linux amd64
respdiff:iter:udp:linux:amd64

00:01:58

passed #204746
docker linux amd64
test:linux:amd64

00:00:54

passed #204753
docker linux amd64
test:linux:amd64:valgrind

00:01:10

 
  Extended
passed #204759
docker linux amd64
pytests:extended

00:09:20

passed #204760
respdiff
respdiff:fwd-tls6-kresd.udp6

00:12:51

passed #204761
respdiff
respdiff:fwd-udp6-kresd.udp6

00:07:51

passed #204765
respdiff
respdiff:fwd-udp6-unbound.tcp6

00:11:51

passed #204766
respdiff
respdiff:fwd-udp6-unbound.tls6

00:18:21

passed #204764
respdiff
respdiff:fwd-udp6-unbound.udp6

00:22:22

passed #204763
respdiff
respdiff:iter.tls6

00:16:53

passed #204762
respdiff
respdiff:iter.udp6

00:16:53

passed #204767
respdiff
resperf:fwd-tls6.udp-asan

00:22:18

passed #204768
respdiff
resperf:fwd-udp6.udp-asan

00:20:18

passed #204769
respdiff
resperf:iter.udp-asan

00:20:17