aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2015-08-09 00:34:16 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2015-12-18 22:28:47 +1100
commitdd9216f46e2f2a3f55dcf4486db8bb36a4f48fdb (patch)
treef903d415b07ed7c40373097255c0eeabf57ef08f /src
parentae502efbb770605babdf3f73aedfc19be42fe426 (diff)
downloadluaossl-dd9216f46e2f2a3f55dcf4486db8bb36a4f48fdb.tar.gz
luaossl-dd9216f46e2f2a3f55dcf4486db8bb36a4f48fdb.tar.bz2
luaossl-dd9216f46e2f2a3f55dcf4486db8bb36a4f48fdb.zip
remove trailing whitespace
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 9c0f852..e8ec0f4 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -314,7 +314,7 @@ static int badoption(lua_State *L, int index, const char *opt) {
static int checkoption(lua_State *L, int index, const char *def, const char *const opts[]) {
const char *opt = (def)? luaL_optstring(L, index, def) : luaL_checkstring(L, index);
- int i;
+ int i;
for (i = 0; opts[i]; i++) {
if (strieq(opts[i], opt))
@@ -3826,7 +3826,7 @@ static double timeutc(ASN1_TIME *time) {
gmtoff *= sign;
}
-
+
return tm2unix(&tm, gmtoff);
badfmt:
return INFINITY;
@@ -7114,7 +7114,7 @@ static unsigned long long rand_llu(lua_State *L) {
* The following algorithm for rand_uniform() is taken from OpenBSD's
* arc4random_uniform, written by Otto Moerbeek, with subsequent
* simplification by Jorden Verwer. Otto's source code comment reads
- *
+ *
* Uniformity is achieved by generating new random numbers until the one
* returned is outside the range [0, 2**32 % upper_bound). This guarantees
* the selected random number will be inside [2**32 % upper_bound, 2**32)
@@ -7137,22 +7137,22 @@ static unsigned long long rand_llu(lua_State *L) {
* X-Complaints-To: ne...@news.purdue.edu
* NNTP-Posting-Date: Thu, 14 Nov 2002 16:20:37 +0000 (UTC)
* Xref: archiver1.google.com sci.crypt:78935
- *
+ *
* In article <3DCD8D7...@nospam.com>,
* Michael Amling <nos...@nospam.com> wrote:
* >Carlos Moreno wrote:
- *
+ *
* I have already posted on this, but a repeat might be
* in order.
- *
+ *
* If one can trust random bits, the most bitwise efficient
* manner to get a single random integer between 0 and N-1
* can be obtained as follows; the code can be made more
* computationally efficient. I believe it is easier to
* understand with gotos. I am assuming N>1.
- *
+ *
* i = 0; j = 1;
- *
+ *
* loop: j=2*j; i=2*i+RANBIT;
* if (j < N) goto loop;
* if (i >= N) {
@@ -7160,14 +7160,14 @@ static unsigned long long rand_llu(lua_State *L) {
* j = j - N;
* goto loop:}
* else return (i);
- *
+ *
* The algorithm works because at each stage i is uniform
* between 0 and j-1.
- *
+ *
* Another possibility is to generate k bits, where 2^k >= N.
* If 2^k = c*N + remainder, generate the appropriate value
* if a k-bit random number is less than c*N.
- *
+ *
* For N = 17 (numbers just larger than powers of 2 are "bad"),
* the amount of information is about 4.09 bits, the best
* algorithm to generate one random number takes about 5.765
@@ -7345,7 +7345,7 @@ static int mt_init(void) {
int i;
mt_state.nlock = CRYPTO_num_locks();
-
+
if (!(mt_state.lock = malloc(mt_state.nlock * sizeof *mt_state.lock))) {
error = errno;
goto epilog;