1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix Random.urandom in a chroot on OpenBSD

[ruby-core:90850] [Bug #15494]

From: jeremyevans0 (Jeremy Evans) <merch-redmine@jeremyevans.net>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-01-03 11:42:24 +00:00
parent d0045da598
commit b2a7a289e0

View file

@ -89,6 +89,11 @@ The original copyright notice follows.
#endif
#include "ruby_atomic.h"
#ifdef __OpenBSD__
/* to define OpenBSD for version check */
#include <sys/param.h>
#endif
typedef int int_must_be_32bit_at_least[sizeof(int) * CHAR_BIT < 32 ? -1 : 1];
/* Period parameters */