A method of assembling a device including first and second parts, the method including: taking the first and second parts; assembling the first and second parts provided by their arrangement so a gap is present between the first and second parts; taking a metal alloy, chosen for its ability to become at least partially amorphous; shaping the metal alloy to fill the gap between the first and second parts to join them and thereby form the device, the metal alloy having been subject to a treatment allowing the alloy to become at least partially amorphous, at a latest at a time of the shaping. The metal alloy is subject to a temperature increase above the melting temperature thereof causing the alloy to lose any local crystalline structure, the increase followed by cooling to a lower temperature than vitreous transition temperature thereof allowing the material to become at least partially amorphous.