summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-11 11:05:20 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-11 11:05:20 (GMT)
commit6f7fafbf004af03cc476648be02c9dc3cc1b4f3d (patch)
tree01e3df96b7ecfa279721ff05cc0c4954daccb9dc /random.c
parentdb40f678493b5e36d1e8af94ea79b6b0bc2c11ea (diff)
random.c: prefixed fill_random_bytes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/random.c b/random.c
index d8cfd38..fbcacca 100644
--- a/random.c
+++ b/random.c
@@ -574,13 +574,15 @@ fill_random_bytes_syscall(void *seed, size_t size, int need_secure)
#endif
int
-fill_random_bytes(void *seed, size_t size, int need_secure)
+ruby_fill_random_bytes(void *seed, size_t size, int need_secure)
{
int ret = fill_random_bytes_syscall(seed, size, need_secure);
if (ret == 0) return ret;
return fill_random_bytes_urandom(seed, size);
}
+#define fill_random_bytes ruby_fill_random_bytes
+
static void
fill_random_seed(uint32_t *seed, size_t cnt)
{