rand: Can't parse "10.1" as a number

Solution In Progress - Updated -

Issue

  • On RHEL8 and RHEL9 decimal values are NOT honored by openssl.
  • It works on RHEL6 and RHEL7
[root@rhel8 ~]# openssl rand -out /tmp/test.bin 10.1
rand: Can't parse "10.1" as a number
[root@rhel8 ~]#

[root@rhel7 ~]# openssl rand -out /tmp/test.bin 10.1
[root@rhel7 ~]# more /tmp/test.bin 
 \�.��e-� }��f�Yd�})N0t=����X�z����g�3
[root@rhel7 ~]# 

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content