git://git.novaco.in
/
NovacoinLibrary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
398e92e
)
Use temporary array, just to avoid the possibility of some unexpected results
author
CryptoManiac
<balthazar@yandex.ru>
Thu, 20 Aug 2015 17:50:04 +0000 (20:50 +0300)
committer
CryptoManiac
<balthazar@yandex.ru>
Thu, 20 Aug 2015 17:50:04 +0000 (20:50 +0300)
Novacoin/Interop.cs
patch
|
blob
|
history
diff --git
a/Novacoin/Interop.cs
b/Novacoin/Interop.cs
index
1f9f0de
..
f0a05cf
100644
(file)
--- a/
Novacoin/Interop.cs
+++ b/
Novacoin/Interop.cs
@@
-26,9
+26,13
@@
namespace Novacoin
{
public static byte[] ReverseBytes(byte[] source)
{
- Array.Reverse(source);
+ byte[] b = new byte[source.Length];
- return source;
+ source.CopyTo(b, 0);
+
+ Array.Reverse(b);
+
+ return b;
}
public static byte[] LEBytes(uint[] values)