Ada-Crypto-Library icon indicating copy to clipboard operation
Ada-Crypto-Library copied to clipboard

on Cygwin: trying to run any executables in the test directory fails, not finding /dev/random

Open byronka opened this issue 6 years ago • 1 comments

$ ./test-tests.exe raised ADA.IO_EXCEPTIONS.NAME_ERROR : /dev/random: No such file or directory $ ls -al /dev/random crw-rw-rw- 1 byron None 1, 8 Apr 28 00:57 /dev/random

byronka avatar Apr 28 '18 05:04 byronka

/dev/random is a Unix only file. The scenario variable "system" allows you to build a windows version that links to advapi32.dll for random numbers. Try, "gnatmake -p libadacrypt.gpr -Xsystem=windows", setting the scenario varible system in GPS, or modifying the System_Type variable in libadacrypt.gpr.

michael-hardeman avatar Apr 28 '18 05:04 michael-hardeman