File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,12 @@ static int s_read_ltm_rng(void *p, size_t n)
130
130
131
131
static int s_mp_rand_source_platform (void * p , size_t n )
132
132
{
133
- int ret = MP_ERR ;
134
-
135
133
#if defined(MP_ARC4RANDOM )
136
134
arc4random_buf (p , n );
137
135
return MP_OKAY ;
138
- #endif
136
+ #else
137
+
138
+ int ret = MP_ERR ;
139
139
140
140
#if defined(MP_WIN_CSP )
141
141
ret = s_read_win_csp (p , n );
@@ -146,19 +146,19 @@ static int s_mp_rand_source_platform(void *p, size_t n)
146
146
ret = s_read_getrandom (p , n );
147
147
if (ret == MP_OKAY ) return ret ;
148
148
#endif
149
+
149
150
#if defined(MP_DEV_URANDOM )
150
151
ret = s_read_dev_urandom (p , n );
151
152
if (ret == MP_OKAY ) return ret ;
152
153
#endif
153
154
154
- #endif /* MP_WIN_CSP */
155
-
156
155
#if defined(MP_PRNG_ENABLE_LTM_RNG )
157
156
ret = s_read_ltm_rng (p , n );
158
157
if (ret == MP_OKAY ) return ret ;
159
158
#endif
160
159
161
160
return ret ;
161
+ #endif
162
162
}
163
163
164
164
static int (* s_rand_source )(void * , size_t ) = s_mp_rand_source_platform ;
You can’t perform that action at this time.
0 commit comments