- Timestamp:
- 2011-03-27T14:09:55Z (14 years ago)
- Branches:
- master
- Children:
- f01bc6f
- Parents:
- ff94563
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/oauth.c
rff94563 rce617f0 108 108 static char *oauth_nonce() 109 109 { 110 unsigned char bytes[9]; 110 unsigned char bytes[21]; 111 char *ret = g_new0( char, sizeof( bytes) / 3 * 4 + 1 ); 111 112 112 113 random_bytes( bytes, sizeof( bytes ) ); 113 return base64_encode( bytes, sizeof( bytes ) ); 114 base64_encode_real( bytes, sizeof( bytes), (unsigned char*) ret, "0123456789" 115 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0A" ); 116 117 return ret; 114 118 } 115 119
Note: See TracChangeset
for help on using the changeset viewer.